Speed up +put:by-schematic
This speeds up the +gather step in Ford. By not doing a full sort every
time we add a build, we remove ~30ms of latency from each chat message
sent my landscape.
%+ ~(put by builds) schematic.build
::
=/ dates (fall (~(get by builds) schematic.build) ~)
- ?^ (find [date.build]~ dates)
+ |-
+ ^+ dates
+ ?~ dates
+ [date.build ~]
+ ?: =(i.dates date.build)
dates
- (sort [date.build dates] gte)
+ ?: (gth date.build i.dates)
+ [date.build dates]
+ [i.dates $(dates t.dates)]
:: +del: remove a +build from :builds
::
:: Removes :build from :builds by replacing the value at
