-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Slow to start #247
Comments
You are correct about the slow startup times. I feel it is slow as well, but there is nothing much that I can do about it. It takes about 2-3 seconds to start on my computer, but even then I consider it super slow. Anything over half a second will feel slow. I may be able to remove Now, as far as loading modules on demand, I am against that idea because it will litter the code with a bunch of flags and |
We could simply access modules using Something like |
it's better to move to Gulp system for minification of assets, |
@vjpr Please clarify:
Are you suggesting to break apart API examples into individual modules? |
@rstormsf This has been discussed many times. I love gulp and use it in all my projects. Browsersync is awesome and I just started using it on my latest side-project. However, these are additional dependencies and an extra mental overhead for the users. I want the experience to be as simple as |
@sahat - awesome! Can you refer some links? Would like to see them. |
@sahat Instead of requiring all the apis at the top of the file. Require On 21 March 2015 at 21:59, Roman Storm notifications@github.com wrote:
|
After swappng connect-assets for node-sass-middleware and splitting declaration and initialization of node.js modules in |
I found that by using Gulp and Browser Sync, I could use nodemon to handle full app restarts and browser sync to handle browser refreshes whenever editing js/css,views. Browser sync makes the changes visible in micro seconds, compared to the 6 seconds it takes for expressjs to startup. It would be possible to add this into the project, but not make it required to Example gulp task.. // 'less','css','scripts',
}); |
Takes about ~12 seconds to start (in Germany).
Connect assets is 6s, and then all the requires in
api.js
take a significant amount of time to start.Possibly some apis are trying to make requests to the USA on startup.
What is the average startup time to expect?
Adding the following at the top of
app.js
andapi.js
......reveals the time required to parse/execute each required file:
This is way to slow to iterate during a hackathon.
I think a remedy might be to require apis on demand instead of on startup.
The text was updated successfully, but these errors were encountered: