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
Removing some optimizations to prepare for refactoring #680
Conversation
sebastienros
commented
Oct 29, 2019
- FunctionWasCalled is not used anymore but kept for future reference. It detects if a method is called to release an arguments array to the pull.
- The last binding memoization has been removed.
- FunctionWasCalled is not used anymore but kept for future reference. It detects if a method is called to release an arguments array to the pull. - The last binding memoization has been removed.
@@ -14,5 +14,7 @@ public Binding(JsValue value, bool canBeDeleted, bool mutable) | |||
public JsValue Value; | |||
public readonly bool CanBeDeleted; | |||
public readonly bool Mutable; | |||
|
|||
public bool IsInitialized => !ReferenceEquals(Value, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add a mental note about this non-readonly-struct and methods causes defensive copies, we can revisit when things settle.
Merge if ready for next steps, not sure if you are planning to do add onto this or smaller PRs. |
UncacheableExpressionBenchmark shows taking twice the time and allocating 8x, so we probably need to get the tweaks (or their variants) back in when the dust settles. |
Are you still ok with merging this one, I had forgotten about it, and the more we wait, the harder it will be. Unless your other PR would become hard to merge with these changes. |
Sure thing, please merge, we can tweak performance later on. I'm more eager to get the let/const bits 🙂 |
Next step, before let/const work is done, is to get hoisting working based on the specs, and not based on the hackery that happens in esprima. And we can then remove it from esprima. |