mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-03 12:42:48 +03:00
Merge pull request #4677 from urbit/philip/fast-refresh
sys: Speed up things used in Landscape
This commit is contained in:
commit
66b4c3f193
@ -5455,9 +5455,10 @@
|
|||||||
~% %co ..co ~
|
~% %co ..co ~
|
||||||
=< |_ lot=coin
|
=< |_ lot=coin
|
||||||
++ rear |=(rom=tape rend(rep rom))
|
++ rear |=(rom=tape rend(rep rom))
|
||||||
++ rent `@ta`(rap 3 rend)
|
++ rent ~+ `@ta`(rap 3 rend)
|
||||||
++ rend
|
++ rend
|
||||||
^- tape
|
^- tape
|
||||||
|
~+
|
||||||
?: ?=(%blob -.lot)
|
?: ?=(%blob -.lot)
|
||||||
['~' '0' ((v-co 1) (jam p.lot))]
|
['~' '0' ((v-co 1) (jam p.lot))]
|
||||||
?: ?=(%many -.lot)
|
?: ?=(%many -.lot)
|
||||||
|
@ -3962,8 +3962,10 @@
|
|||||||
ruf=raft :: revision tree
|
ruf=raft :: revision tree
|
||||||
== ::
|
== ::
|
||||||
|= [now=@da eny=@uvJ rof=roof] :: current invocation
|
|= [now=@da eny=@uvJ rof=roof] :: current invocation
|
||||||
|
~% %clay-top ..part ~
|
||||||
|% ::
|
|% ::
|
||||||
++ call :: handle request
|
++ call :: handle request
|
||||||
|
~/ %clay-call
|
||||||
|= $: hen=duct
|
|= $: hen=duct
|
||||||
dud=(unit goof)
|
dud=(unit goof)
|
||||||
wrapped-task=(hobo task)
|
wrapped-task=(hobo task)
|
||||||
@ -4273,6 +4275,7 @@
|
|||||||
--
|
--
|
||||||
::
|
::
|
||||||
++ scry :: inspect
|
++ scry :: inspect
|
||||||
|
~/ %clay-scry
|
||||||
^- roon
|
^- roon
|
||||||
|= [lyc=gang car=term bem=beam]
|
|= [lyc=gang car=term bem=beam]
|
||||||
^- (unit (unit cage))
|
^- (unit (unit cage))
|
||||||
@ -4334,6 +4337,7 @@
|
|||||||
==
|
==
|
||||||
::
|
::
|
||||||
++ take :: accept response
|
++ take :: accept response
|
||||||
|
~/ %clay-take
|
||||||
|= [tea=wire hen=duct dud=(unit goof) hin=sign]
|
|= [tea=wire hen=duct dud=(unit goof) hin=sign]
|
||||||
^+ [*(list move) ..^$]
|
^+ [*(list move) ..^$]
|
||||||
?^ dud
|
?^ dud
|
||||||
|
@ -425,10 +425,12 @@
|
|||||||
:- ~
|
:- ~
|
||||||
%- as-octs:mimes:html
|
%- as-octs:mimes:html
|
||||||
%- crip
|
%- crip
|
||||||
%- zing
|
%- zing ^- ^wall
|
||||||
|
%- zing ^- (list ^wall)
|
||||||
%+ turn wall
|
%+ turn wall
|
||||||
|= t=tape
|
|= t=tape
|
||||||
"{t}\0a"
|
^- ^wall
|
||||||
|
~[t "\0a"]
|
||||||
:: +internal-server-error: 500 page, with a tang
|
:: +internal-server-error: 500 page, with a tang
|
||||||
::
|
::
|
||||||
++ internal-server-error
|
++ internal-server-error
|
||||||
@ -1597,6 +1599,7 @@
|
|||||||
:: +channel-event-to-sign: attempt to recover a sign from a channel-event
|
:: +channel-event-to-sign: attempt to recover a sign from a channel-event
|
||||||
::
|
::
|
||||||
++ channel-event-to-sign
|
++ channel-event-to-sign
|
||||||
|
~% %eyre-channel-event-to-sign ..part ~
|
||||||
|= event=channel-event
|
|= event=channel-event
|
||||||
^- (unit sign:agent:gall)
|
^- (unit sign:agent:gall)
|
||||||
?. ?=(%fact -.event) `event
|
?. ?=(%fact -.event) `event
|
||||||
@ -1677,6 +1680,7 @@
|
|||||||
==
|
==
|
||||||
::
|
::
|
||||||
++ event-json-to-wall
|
++ event-json-to-wall
|
||||||
|
~% %eyre-json-to-wall ..part ~
|
||||||
|= [event-id=@ud =json]
|
|= [event-id=@ud =json]
|
||||||
^- wall
|
^- wall
|
||||||
:~ (weld "id: " (format-ud-as-integer event-id))
|
:~ (weld "id: " (format-ud-as-integer event-id))
|
||||||
@ -2094,6 +2098,7 @@
|
|||||||
~% %http-server ..part ~
|
~% %http-server ..part ~
|
||||||
|%
|
|%
|
||||||
++ call
|
++ call
|
||||||
|
~/ %eyre-call
|
||||||
|= [=duct dud=(unit goof) wrapped-task=(hobo task)]
|
|= [=duct dud=(unit goof) wrapped-task=(hobo task)]
|
||||||
^- [(list move) _http-server-gate]
|
^- [(list move) _http-server-gate]
|
||||||
::
|
::
|
||||||
@ -2296,6 +2301,7 @@
|
|||||||
==
|
==
|
||||||
::
|
::
|
||||||
++ take
|
++ take
|
||||||
|
~/ %eyre-take
|
||||||
|= [=wire =duct dud=(unit goof) =sign]
|
|= [=wire =duct dud=(unit goof) =sign]
|
||||||
^- [(list move) _http-server-gate]
|
^- [(list move) _http-server-gate]
|
||||||
?^ dud
|
?^ dud
|
||||||
@ -2483,6 +2489,7 @@
|
|||||||
:: +scry: request a path in the urbit namespace
|
:: +scry: request a path in the urbit namespace
|
||||||
::
|
::
|
||||||
++ scry
|
++ scry
|
||||||
|
~/ %eyre-scry
|
||||||
^- roon
|
^- roon
|
||||||
|= [lyc=gang car=term bem=beam]
|
|= [lyc=gang car=term bem=beam]
|
||||||
^- (unit (unit cage))
|
^- (unit (unit cage))
|
||||||
|
@ -3286,7 +3286,7 @@
|
|||||||
++ ship :: string from ship
|
++ ship :: string from ship
|
||||||
|= a=^ship
|
|= a=^ship
|
||||||
^- json
|
^- json
|
||||||
(tape (slag 1 (scow %p a)))
|
[%n (rap 3 '"' (rsh [3 1] (scot %p a)) '"' ~)]
|
||||||
:: :: ++numb:enjs:format
|
:: :: ++numb:enjs:format
|
||||||
++ numb :: number from unsigned
|
++ numb :: number from unsigned
|
||||||
|= a=@u
|
|= a=@u
|
||||||
|
Loading…
Reference in New Issue
Block a user