0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/web
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
..
admin Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
api Improved Ghost boot time and memory usage by lazy loading routes 2021-10-15 17:52:07 +02:00
members Added new offers endpoint on members API 2021-10-15 11:46:27 +05:30
oauth Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
parent Moved server/web/site to frontend/web 2021-10-21 19:28:18 +01:00
shared Moved URL service to backend 2021-10-19 07:29:09 +13:00
index.js
well-known.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00