evalcache icon indicating copy to clipboard operation
evalcache copied to clipboard

[idea] zcompile cache

Open acevif opened this issue 10 months ago • 1 comments

Hello,

I have an idea to improve performance further. Would it be possible to precompile the cache file generated by evalcache with zcompile? This change might reduce the time spent parsing the file during shell startup. I am not completely sure of the benefits, but I wanted to share the idea for your consideration.

Thank you for your time.

acevif avatar Feb 13 '25 01:02 acevif

Interesting -- it's certainly possible. Usually the files I had been caching were pretty small, so I'm not sure how much overhead zcompile would remove. I imagine you could test this by manually zcompiling the cached file and seeing it if measurably impacts load times on your system?

mroth avatar Feb 13 '25 14:02 mroth