Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[idea] zcompile cache #12

Open
acevif opened this issue Feb 13, 2025 · 1 comment
Open

[idea] zcompile cache #12

acevif opened this issue Feb 13, 2025 · 1 comment

Comments

@acevif
Copy link

acevif commented Feb 13, 2025

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.

@mroth
Copy link
Owner

mroth commented Feb 13, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants