Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: faster page navigation by speeding up createClientConfig, speed up version fetching, speed up lexical init. Up to 100x faster #9457

Merged
merged 26 commits into from
Nov 26, 2024

Commits on Nov 22, 2024

  1. perf: speed up createClientConfig (4.1s => 50ms with 400 fields) by r…

    …emoving deep copying and building client config from the ground up instead
    AlessioGr committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    79e221d View commit details
    Browse the repository at this point in the history
  2. perf: properly cache createClientConfig in both prod & dev. It now on…

    …ly runs once, and does not re-run when refreshing the page or navigating. HMR still works despite caching in dev
    AlessioGr committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    c5789d6 View commit details
    Browse the repository at this point in the history
  3. perf: do not await dependency checker. Doesn't matter when the result…

    … comes back, we should run it in the background
    AlessioGr committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    c768fb0 View commit details
    Browse the repository at this point in the history
  4. remove unnecessary awaits

    AlessioGr committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    c40ff01 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9c79c51 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2024

  1. perf: remove createClientField call in renderField, cache schemaMap a…

    …nd clientSchemaMap, introduce clientSchemaMap
    AlessioGr committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    8147299 View commit details
    Browse the repository at this point in the history
  2. perf: lexical: handle clientField and clientSchemaMap generation in p…

    …ayload and cache it. This now only happens once
    AlessioGr committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    7aa3453 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    44e1bd4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    952fd26 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4c6e9a1 View commit details
    Browse the repository at this point in the history
  6. perf(next): speed up version fetching by disabling pagination and lim…

    …iting returned fields using select
    AlessioGr committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    c588c7e View commit details
    Browse the repository at this point in the history
  7. do the same for globals

    AlessioGr committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    7f88161 View commit details
    Browse the repository at this point in the history
  8. perf(next): completely skip query to find out if published document e…

    …xists, if already-queried document is published
    AlessioGr committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    81763b6 View commit details
    Browse the repository at this point in the history
  9. simplify getVersions

    AlessioGr committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    8cba6c5 View commit details
    Browse the repository at this point in the history
  10. add comment

    AlessioGr committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    dac7f0b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    815c5b5 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2024

  1. Configuration menu
    Copy the full SHA
    a75e426 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. perf(richtext-lexical): remove deep copying in adapter, ensure defaul…

    …t editor config is properly cached and only sanitized once for all lexical fields, instead of once per lexical field, as previously this was not cached until the sanitization function finished
    AlessioGr committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    616de3c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8409de7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e264631 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5f8f9f7 View commit details
    Browse the repository at this point in the history
  5. remove console.log

    AlessioGr committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    d4a6735 View commit details
    Browse the repository at this point in the history
  6. small optimization

    AlessioGr committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    6187427 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f0fecc4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9da0158 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2024

  1. Configuration menu
    Copy the full SHA
    eb1a61e View commit details
    Browse the repository at this point in the history