-
Notifications
You must be signed in to change notification settings - Fork 413
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
feature: hash source with AST #1074
Comments
That's an interesting suggestion. I wonder if it could have a performance impact though. @pierreglaser wants to investigate with a bad interaction that prevent caching to work as expected when:
all 3 at the same time. Using the AST instead of the source might be a fix for the above problem. |
you mean the Memory object? |
I agree that it's a good suggestion. That could also simplify the codebase. |
@pierreglaser feel free to investigate, in particular in the context of the bug you described to me IRL and that I tried to summarize in #1074 (comment). Please open a dedicated issue for the bug itself if you can come up with a simple reproducer. |
I went ahead and gave it a shot. I only did a quick test and it seems to work. It's crude though and just demonstrates the concept. The ast hashing was straightforward but I couldn't follow all the (existing) code. Function source refs seems to be entangled with its hashing. |
bump @pierreglaser |
It's a bit annoying that the cache gets invalidated by trivial non-functional code changes. Has anyone thought of hashing the ast to identify a function?
The text was updated successfully, but these errors were encountered: