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

Make ObjectInstance MruPropertyCache2 dictionary lazy #454

Merged
merged 3 commits into from
Jan 2, 2018

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Dec 22, 2017

This change add commonly accessed prototype and constructor fields directly to ObjectInstance. Dictionary is initialized if these two fields are not enough to describe the object. On top of memory usage changes so that PR needs to be addressed first.

@sebastienros
Copy link
Owner

I am currently refactoring all the Environment classes and ObjectInstance to follow the ES6 spec, this will give me some headache when I merge 🚑

@lahma
Copy link
Collaborator Author

lahma commented Dec 22, 2017

What if you rebase overwriting with your changes and we re-implement the ObjectInstance part later if there's a TODO comment?

@sebastienros
Copy link
Owner

Don't worry, I'll make it work.

@lahma lahma force-pushed the perf/lazy-mru-cache branch 2 times, most recently from 1316633 to fdf76db Compare January 1, 2018 09:14
* remove LINQ from hot paths
* use List<T> where possible to get rid of memory allocations
* cache empty completions
* use separate fields for commonly accessed prototype and constructor
* this helps with array optimization branch as this can be considered master version
@sebastienros sebastienros merged commit 189af9f into sebastienros:dev Jan 2, 2018
@lahma lahma deleted the perf/lazy-mru-cache branch January 3, 2018 05:43
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

Successfully merging this pull request may close these issues.

2 participants