Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

output code hint at skipping preparse of immediately invoked things #60

Open
stefanpenner opened this issue Apr 5, 2017 · 0 comments
Open

Comments

@stefanpenner
Copy link
Contributor

stefanpenner commented Apr 5, 2017

given:
var ComponentDefinition$1 = function (_GlimmerComponentDefi) {

Adding a wrapping ( and trailing ) before the () would hint to v8 and friends that this shouldn't be pre-parsed, just parsed. This should help minimize initial parse/eval cost.

var ComponentDefinition$1 = (function (_GlimmerComponentDefi) {

Be sure the uglification step doesn't strip these, or it may defeat this..

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

No branches or pull requests

1 participant