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

speed up Meta instantiation #2

Merged
merged 3 commits into from
Aug 5, 2015
Merged

speed up Meta instantiation #2

merged 3 commits into from
Aug 5, 2015

Conversation

stefanpenner
Copy link

6ms -> noise

turns out there is no 0 cost abstraction in JS yet...

screen shot 2015-08-04 at 2 37 37 pm

screen shot 2015-08-04 at 2 33 58 pm

this is more or less the result after several independent runs.

This also seems to have pulled down GC cost, I suspect that context perserved by the forEach for _this was largely to blame for the later. With a for loop the perf was midway. So combination of both yielded a good win here. My test case over-all improved nicely, from always ~1050ms to always mid 950ms...

6ms -> noise

turns out there is no 0 cost abstraction in JS yet...
In one example this removes nearly 8% of gets
ef4 added a commit that referenced this pull request Aug 5, 2015
speed up Meta instantiation
@ef4 ef4 merged commit 584fc73 into ef4:meta-sanity Aug 5, 2015
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