serpent-os / tools

The home of moss (system state manager) and boulder (moss format build tool)
https://serpentos.com
132 stars 12 forks source link

moss: vfs: Cache expensive path calc / allocations #336

Closed tarkah closed 1 month ago

tarkah commented 1 month ago

Basically fix path() path() path() path() path() being called 100x times. Cache it on first invocation by wrapping BlitFitle and calling these expensive methods only once.

Wall time went from 14.4s -> 600ms xD