Merge pull request #6773 from urbit/msl/arvo-scry-type-checks-persistent-caching

arvo: persistently cache scry type checks
This commit is contained in:
Pyry Kovanen 2023-11-10 18:53:25 +02:00 committed by GitHub
commit e422897065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,7 +352,9 @@
?~ dat=(rof lyc pov u.mon) ~ ?~ dat=(rof lyc pov u.mon) ~
?~ u.dat [~ ~] ?~ u.dat [~ ~]
=* vax q.u.u.dat =* vax q.u.u.dat
?. ?& ?=(^ ref) ?. => [ref=ref vax=p=p.vax hoon-version=hoon-version wa=wa worm=worm]
~> %memo./arvo/look :: with memoization
?& ?=(^ ref)
=(hoon-version -.ref) =(hoon-version -.ref)
-:(~(nets wa *worm) +.ref p.vax) -:(~(nets wa *worm) +.ref p.vax)
== ==