0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/shared
Daniel Lockyer ed6a8dca76 Inlined package requires to save boot time and memory
no issue

- following on from f4fb0fcbaa,
  this commit moves around some package requires in Ghost
- these are often niche packages that do something in a subsystem of
  Ghost, and are not necessarily be needed to boot the application
- these packages use non-negligible CPU and memory when they are
  required, so it makes sense to lazy-require them
- the concern here is that we obscure the code too much by moving
  random requires further into code, but the changes are small and the
  improvements big
- this commit bring the boot time since 4.19.0 down ~31% and initial
  memory usage down by a total of ~12%
2021-10-22 09:57:59 +02:00
..
config Moved public folder to frontend 2021-10-16 19:27:34 +01:00
settings-cache Swapped to American English spellings 2021-08-09 13:35:01 +04:00
custom-theme-settings-cache.js Added syncing and theme exposure of custom theme settings (#13354) 2021-09-23 12:44:39 +01:00
express.js Improved Ghost boot time and memory usage by lazy loading routes 2021-10-15 17:52:07 +02:00
html-to-plaintext.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
labs.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
sentry.js Fixed the version sent to Sentry 2021-05-17 13:32:56 +02:00
url-utils.js Updated to use config-url-helpers in urlUtils 2021-06-18 21:49:28 +01:00