0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/core/server
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
..
adapters Enabled passing through a feature name to utilize with a storage adapter 2021-10-21 20:22:45 +13:00
api Made storage calls related to images use "images" feature 2021-10-21 20:22:45 +13:00
data Reworked init migrations to use async/await (#13635) 2021-10-21 11:19:59 +01:00
lib Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
models Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
services Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
views Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
web Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
analytics-events.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
ghost-server.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
notify.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
overrides.js Set global Luxon timezone override to UTC 2021-10-20 09:19:29 +02:00
run-update-check.js Removed remaining usage of i18n & translation file 2021-10-15 11:39:07 +01:00
update-check.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00