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

Performance (at least in Webstorm debug) #16

Closed
mchapman opened this issue Dec 17, 2014 · 7 comments
Closed

Performance (at least in Webstorm debug) #16

mchapman opened this issue Dec 17, 2014 · 7 comments
Assignees
Labels

Comments

@mchapman
Copy link

After updating packages my express app, with errorhandler, was taking about 10 minutes to start in debug mode in the Webstorm IDE. I downgraded to express 4.8.8 and errorhandler 1.1.1 and it went back to 8 seconds or so. Seems to be v2 of mime-types that causes the problem.

@jonathanong
Copy link
Member

we're going to need more information than this, specifically what exactly is causing the lag. it sounds like an issue with your IDE though because i've never experienced any lag with this library (or any node library i use, really).

@mchapman
Copy link
Author

The delay is in processing the JSON file. It takes several minutes and it is done twice - once for errorhandler and once for express.

@dougwilson
Copy link
Contributor

It's definitely a WebStorm debugger issue: http://stackoverflow.com/questions/19747783/nodejs-json-parse-takes-forever-to-finish-under-debugger-in-webstorm

Parsing any large JSON file is going to take forever; there isn't anything we can really do.

@dougwilson
Copy link
Contributor

If you haven't tried it already, I would say try upgrading your WebStorm to the latest version to see if the issue still exists or not.

@dougwilson
Copy link
Contributor

In fact, this issue may be fixed in WebStorm 8 with the additional arguments of -Dnodejs.debugger.use.jb.support=true; I'm not sure if you need the arguments for WebStorm 9 or not.

@mchapman
Copy link
Author

Looks like it was still broken in 9.01 but fixed in 9.02 (which has just come out), though I can't see it in the release notes. Thanks for your help and advice.

@dougwilson
Copy link
Contributor

Oh, so it's fixed in 9.0.2? That's really awesome to hear! I would feel bad if you were stuck in such a slow experience otherwise :(

@dougwilson dougwilson self-assigned this Feb 24, 2015
@jshttp jshttp locked and limited conversation to collaborators Feb 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants