mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
Merge branch 'la/isaac-fix' (#4434)
* origin/la/isaac-fix: contact-push-hook: speed up asymptotics by only doing a fixed number of scries Signed-off-by: Matilde Park <matilde.park@gmail.com>
This commit is contained in:
commit
7c3f0c8f54
@ -94,16 +94,18 @@
|
||||
++ rolo
|
||||
^- rolodex:store
|
||||
=/ ugroup (scry-group:grp resource)
|
||||
=/ =rolodex:store
|
||||
(scry-for:con rolodex:store /all)
|
||||
%- ~(gas by *rolodex:store)
|
||||
?~ ugroup
|
||||
=/ c=(unit contact:store) (get-contact:con our.bowl)
|
||||
=/ c=(unit contact:store) (~(get by rolodex) our.bowl)
|
||||
?~ c
|
||||
[our.bowl *contact:store]~
|
||||
[our.bowl u.c]~
|
||||
%+ murn ~(tap in (members:grp resource))
|
||||
|= s=ship
|
||||
^- (unit [ship contact:store])
|
||||
=/ c=(unit contact:store) (get-contact:con s)
|
||||
=/ c=(unit contact:store) (~(get by rolodex) s)
|
||||
?~(c ~ `[s u.c])
|
||||
--
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user