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

more efficient scope chaining #3

Open
cammckinnon opened this issue Apr 26, 2012 · 0 comments
Open

more efficient scope chaining #3

cammckinnon opened this issue Apr 26, 2012 · 0 comments
Labels

Comments

@cammckinnon
Copy link
Owner

Currently, scope chaining is done by creating a new copy of the entire scope for each level of scope. That is, while it is O(1) to resolve symbols, it's O(n * k) to have n scope levels with k variables defined. I'm fairly sure that with a cleverer scope chaining datastructure, we could keep the O(1) symbol resolution but get O(k) for the scope levels. If not O(k) then definitely better than O(n * k) at least on average though.

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

No branches or pull requests

1 participant