-
Notifications
You must be signed in to change notification settings - Fork 13
Solutions with functions interning #1
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
base: master
Are you sure you want to change the base?
Conversation
|
Thank you for the PR! |
|
Looks good, do you have the |
|
|
An optimisation you could do on top of this is convert struct InternedFunction {
args: Range<usize>,
body: Range<usize>,
}
struct Functions<'src> {
args: Vec<&'src str>,
body: Vec<Ast<'src>>,
}I'd also have Actually, I'll make these changes quick and then see what the benchmarks look like. |
|
So I implemented this work and the speedup is minimal (on If you want to see the code you can check it out on my Weirdly, it's faster on two of the |
This branch contains my solutions with function interning.