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

use undeclared-identifiers #76

Merged
merged 4 commits into from
Jun 15, 2018
Merged

use undeclared-identifiers #76

merged 4 commits into from
Jun 15, 2018

Conversation

goto-bus-stop
Copy link
Member

@goto-bus-stop goto-bus-stop commented Apr 11, 2018

undeclared-identifiers collects references to undeclared identifiers and their properties. It does much less work than lexical-scope so it is quite a bit faster.

before:

# jquery
ok ~432 ms (0 s + 432086435 ns)

after:

# jquery
ok ~223 ms (0 s + 223387040 ns)

before:

  $ npx ./bench/run.sh
  real    0m0.874s
  user    0m1.219s
  sys     0m0.060s

Of that, 470ms were spent in `insert-module-globals`.

after:

  $ npx ./bench/run.sh
  real    0m0.580s
  user    0m0.863s
  sys     0m0.056s

Of that, 220ms were spent in `insert-module-globals`.
@falsandtru
Copy link

Can you merge?

To make sure that all the parsing in browserify happens in modules
under the browserify org; this way anyone in the browserify github org
can upgrade to newer parser versions if necessary.
@goto-bus-stop goto-bus-stop merged commit 363cfdc into master Jun 15, 2018
@goto-bus-stop
Copy link
Member Author

ya. the consequences of a change like this are difficult to predict so hopefully it doesn't break anyone. if it does, i'll revert.

@goto-bus-stop goto-bus-stop deleted the undeclared-identifiers branch June 15, 2018 12:27
@falsandtru
Copy link

Thanks!

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.

None yet

2 participants