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

Get rid of main loop blocking #8

Open
garretraziel opened this issue Dec 7, 2014 · 0 comments
Open

Get rid of main loop blocking #8

garretraziel opened this issue Dec 7, 2014 · 0 comments
Labels

Comments

@garretraziel
Copy link
Owner

Using blocked, you quickly discover that main loop is blocked pretty often - only starting qubie and loading two pages shows:

[garret@blanka qb]$ nodemon server.js 
7 Dec 12:20:43 - [nodemon] v1.2.1
7 Dec 12:20:43 - [nodemon] to restart at any time, enter `rs`
7 Dec 12:20:43 - [nodemon] watching: *.*
7 Dec 12:20:43 - [nodemon] starting `node server.js`
App is running on port 8080
blocked for 15ms
blocked for 334ms
blocked for 106ms
blocked for 27ms

Problem can be, generally, JSON parsing (so there will surely be problem in drawdb.js) and other CPU-heavy tasks. Go through the code and check all actions to be non-blocking.

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

No branches or pull requests

1 participant