Keystone is crazy slow to start
See original GitHub issueThis is an umbrella issue to track startup performance. It should be possible to get startup perf <100ms because there just isn’t that much code!
console.time('keystone');
var keystone = require('keystone');
console.timeEnd('keystone');
$ node server.js
keystone: 3297.995ms
Issue Analytics
- State:
- Created 7 years ago
- Comments:35 (25 by maintainers)
Top Results From Across the Web
Requesting access token through OpenStack Keystone ...
I have been trying to figure out why requesting an access token through OpenStack Keystone is relatively slow (lowest is about 400 ms...
Read more >SLOW Application startup on new iMac
I have a new (2019) 21.5 inch iMac running 10.14.6 Mojave. Every application is "bouncing" 40-50 times it opens, unless I open it...
Read more >The Complete Guide to Keystone Resort for Beginners and ...
If you are a beginner or family with kids, this will help you decide if Keystone or Breckenridge is the perfect resort for...
Read more >What to do When Your High-End Computer is Running Slow
Your computer can be infected from something as simple as opening emails from unknown or suspicious senders or downloading files from weird and ......
Read more >Tourism slowdown could devastate Keystone, S.D., ...
Local businesses that are open year-round or which opened in March for the early tourism season report that sales are already down by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Without knowledge of keystone’s internals, some obvious candidates for lazy / optional module loading:
npm postinstall
script.Alone those two changes would decrease startup time by >50% (to about 1 second on my mba).
Problem: Loading the Admin UI for the first time (after the server restarts) takes way too long (1min), and unfortunately slows down my productivity a lot.
Cause: fields.js and admin.js take > 1 min to be generated
Proof:
Details: Lately, more than ever, this is something I have been struggling with. I don’t want to be picky about it because having an auto-generated admin UI, even if slowly generated at first, is far better than not having one and it’s the first reason for me to use KeystoneJS. But unfortunately, since I’me developing my biggest project so far, I have to take a lot of consideration into how the Admin UI displays the data and enables any user to manage it = which translates in restarting the server all the time and checking the changes.
Is it something I’m doing wrong? Any tips on how to decrease this, or is it already fixed and it’s waiting for a PR? I suppose it has to do with reading all the Models structure and translating to React.js components/etc (I have no experience with reactjs yet).