0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/lib
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
..
common Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
image Made storage calls related to images use "images" feature 2021-10-21 20:22:45 +13:00
mobiledoc.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
request-external.js Blocked 0.* IP addresses when making oembed requests 2021-09-14 11:35:14 +01:00
validate-password.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00