question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keystone is crazy slow to start

See original GitHub issue

This 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:closed
  • Created 7 years ago
  • Comments:35 (25 by maintainers)

github_iconTop GitHub Comments

5reactions
josephgcommented, May 12, 2016

Without knowledge of keystone’s internals, some obvious candidates for lazy / optional module loading:

  • lib/email (670ms)
  • browserify (612ms). The keystone admin UI javascript should be compiled in an npm postinstall script.

Alone those two changes would decrease startup time by >50% (to about 1 second on my mba).

3reactions
ghuroocommented, Jan 18, 2017

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: 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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found