browserify / detective

Find all calls to require() no matter how deeply nested using a proper walk of the AST
Other
414 stars 61 forks source link

skip traversing branches without the "word" #60

Closed zertosh closed 9 years ago

zertosh commented 9 years ago

inspired by #58.

running the benchmark against jquery:

before:

  $ for i in {1..5}; do node detect.js; done
  118
  115
  117
  111
  112

after:

  $ for i in {1..5}; do node detect.js; done
  98
  94
  96
  100
  94
zertosh commented 9 years ago

I hate san francisco. I miss new york. I'm bored at home on halloween.