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: optimizations for buildResolveInfo() and replaceVariables() #4213

Merged
merged 2 commits into from
Oct 6, 2024

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Oct 2, 2024

These can be merged separately with the "Rebase" strategy to get separate commits for use with git bisect.

buildResolveInfo() was deoptimized within #4015.
replaceVariables() was never optimized, uses less memory with simple function rather than visitor.

@yaacovCR yaacovCR requested a review from a team as a code owner October 2, 2024 03:28
@yaacovCR yaacovCR requested review from JoviDeCroock and removed request for a team October 2, 2024 03:28
Copy link

netlify bot commented Oct 2, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit de1100f
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/67027e37cba3f300086ea7e1
😎 Deploy Preview https://deploy-preview-4213--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Oct 2, 2024

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@yaacovCR
Copy link
Contributor Author

yaacovCR commented Oct 2, 2024

This fixes our benchmarks:

image

@yaacovCR yaacovCR merged commit ceec0ce into graphql:main Oct 6, 2024
20 checks passed
@yaacovCR yaacovCR deleted the fix-memory branch October 6, 2024 12:12
@yaacovCR yaacovCR added the PR: bug fix 🐞 requires increase of "patch" version number label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix 🐞 requires increase of "patch" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants