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

Macros with gensym make not reusing cached results after JVM restart #735

Open
pm4r opened this issue Dec 4, 2024 · 1 comment
Open

Comments

@pm4r
Copy link

pm4r commented Dec 4, 2024

I noticed that for some function calls results are not taken from cache after JVM restart. It is especially frustrating when it take a couple of minutes to execute something. Turned out that the reason were macros with auto-gensym (like abc#) because on each JVM start that would evaluate to different symbol, thus analyzer would find such form to be different than what it has already cached
.
The workaround was to change gensym with fixed symbols like ~'abc. I'm not sure if there is better solution for that. It would be good to clarify that in docs.

@mk
Copy link
Member

mk commented Dec 7, 2024

Hi @pm4r, thanks for raising this. I'll need to dig a bit deeper into this. I'd like to get Clerk's caching work for these macros as well.

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

No branches or pull requests

2 participants