substack/node-detective — pull request #9 by ashtuchkin (2012-03-02 09:51:03+00:00)
Title: Performance boost

I've decided to get rid of both ```js-traverse``` and ```burrito``` and use raw ```uglify-js``` instead. The thing is both js-traverse and burrito are too powerful, having too many features that are unused in detective - making it slow.

I think this solution is better than fixing js-traverse because someone might need those features and will use those projects, but in current situation it would be more time-consuming to try to make them even more generic and optimized, than to just use straight uglify. Hope you agree.

In detective all tests pass. In browserify ```npm test``` throws lots of errors with and without this patch (hope its a problem in my environment).

P.S. The code in traverse function is not generic, but as we only have AST tree here - it should be enough (and fast).