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

Optimize object expressions and type conversions #521

merged 1 commit into from Jul 11, 2018


None yet
2 participants

lahma commented Jul 10, 2018

  • fast path for common object expression transformation from properties to new object
  • some conversion tweaks for common cases
  • constructors for JsValues that are aleady resolved, no need to create them again


Diff Method N Mean Gen 0 Gen 1 Allocated
Old Benchmark 500 296.8 ms 36812.5000 125.0000 147.43 MB
New 278.6 ms (-6%) 33750.0000 (-8%) - 135.01 MB (-8%)

@sebastienros sebastienros merged commit c6881dc into sebastienros:dev Jul 11, 2018

1 check passed

continuous-integration/appveyor/pr AppVeyor build succeeded

@lahma lahma deleted the lahma:perf/faster-object-expressions branch Jul 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment