Ghost/core
Daniel Lockyer f4fb0fcbaa Improved Ghost boot time and memory usage by lazy loading routes
no issue

- right now, we mount all API endpoints (v2, v3 and canary), alongside some
  other routes, when Ghost is booting. This is wasteful because we don't
  necessarily need any of the endpoints to get Ghost up and running
- even when Admin is used, it uses `canary` so `v2` and `v3` sit in memory
- the better approach here is to lazy load these endpoints, so they only
  get mounted when needed
- this commit adds the `lazyUse` function into our Express lib,
  which takes a mount path and a module function to execute down the
  line. This gets passed to the wonderful `express-lazy-router` lib which
  detects when we're calling an unmounted module and will mount it for
  us
- from local testing, this speeds up boot time by about 18% and reduces
  initial memory usage by about 6% 🚀
2021-10-15 17:52:07 +02:00
..
client@07dc75c999 Updated Admin to v4.19.0 2021-10-15 16:23:19 +01:00
frontend Removed remaining usage of i18n & translation file 2021-10-15 11:39:07 +01:00
server Improved Ghost boot time and memory usage by lazy loading routes 2021-10-15 17:52:07 +02:00
shared Improved Ghost boot time and memory usage by lazy loading routes 2021-10-15 17:52:07 +02:00
app.js Added Sentry to new boot process 2021-02-19 09:20:41 +00:00
boot.js Removed remaining usage of i18n & translation file 2021-10-15 11:39:07 +01:00
bridge.js Added clarifying note to bridge 2021-09-30 15:43:39 +01:00