Skip to content

Bump Server Preset (the one with cache) - #8415

Open
eddeee888 wants to merge 3 commits into
mainfrom
test-server-preset
Open

Bump Server Preset (the one with cache)#8415
eddeee888 wants to merge 3 commits into
mainfrom
test-server-preset

Conversation

@eddeee888

@eddeee888 eddeee888 commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR uses the Server Preset version that focuses on caching schema type vs mappers comparison result (expensive calculation)

Result

Run type Before After Changes
Cold run, all generates 7.5s 7.5s N/A
Warm run, all generates, cache miss 5.6s 5.6s N/A
Warm run, all generates, cache hit 5.6s (no cache, same as above) 2.6s -53%
Cold run, only server preset generates 5.2s 5.2s N/A
Warm run, only server preset generates, cache miss 3.1s 3.1s N/A
Warm run, only server preset generates, cache hit 3.1s (no cache, same as above) 0.6s -80%

This is useful in scenarios where schema and mapper files do not change:

  • when we are working on the client side
  • when we are writing resolver logic e.g. adding/removing resolver function. In those cases, the resolver codemod should happen quicker

@theguild-bot

theguild-bot commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
hive 11.12.2-alpha-20260902135942-abc49e3c02b038fb47a60d5f8840c3220b85e16a npm ↗︎ unpkg ↗︎

@github-actions

github-actions Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🐋 This PR was built and pushed to the following Docker images:

Targets: build

Platforms: linux/amd64

Image Tags: 11.12.2-alpha-abc49e3, abc49e3, abc49e3c02b038fb47a60d5f8840c3220b85e16a

@eddeee888
eddeee888 requested review from jdolle and n1ru4l August 29, 2026 11:04
Comment thread package.json Outdated
"@changesets/changelog-github": "0.7.0",
"@changesets/cli": "2.31.1",
"@eddeee888/gcg-typescript-resolver-files": "0.18.4",
"@eddeee888/gcg-typescript-resolver-files": "0.0.0-pr487-run427-1-20260829091237",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: release stable version once we are happy with this preview

@eddeee888

Copy link
Copy Markdown
Collaborator Author

Hi @n1ru4l , could you please try this version?
There'd be a few patches I need to do in Codegen and the preset for some edge cases, but this current alpha should have the main watch perf improvement

Comment thread codegen.mts
Comment on lines -8 to -10
overwrite: {
removeStaleFiles: false,
},

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codegen now supports this being set on generates block, and Server Preset is doing that with defineConfig. So, this can go

@eddeee888
eddeee888 marked this pull request as ready for review September 2, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants