mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-08 08:08:35 +03:00
fa6748a7e1
With these changes, about 90% less memory and 15% less time is needed to compile hoon.hoon. The produced noun is within 3% of the same size, which suggests this results in little if any duplication. These are three of the four most commonly hit +ut jets. The other is +nest, which cannot be un-memoized without taking much longer to compile (it didn't finish in my test). These four jets combined for 2.3 million out of the 2.4 million cache entries, the other +ut jets combine for less than 100k, and literal ~+ accounted for about 50k entries. This also caps the memo cache at 50k entries. Even with these jets not memoized, the memo cache grows to 357k entries and 122 MB. Capping at 50k entries has no effect on time and reduces memory usage of the hash table to about 25MB. Entries are reclaimed with the clock algorithm, which seems to be sufficient for this use. |
||
---|---|---|
.. | ||
arvo | ||
ent | ||
ge-additions | ||
herb | ||
hs | ||
interface | ||
libaes_siv | ||
urbit |