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

[kbn/babel-register] improve cache performance #150261

Merged
merged 5 commits into from
Feb 7, 2023

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Feb 3, 2023

After #146212 it feels like the babel-register cache is getting invalidated more frequently for some reason. The current version of the cache only stores a single cache entry for each file path, which shouldn't be too big of a problem but with these changes several versions of a file will be cached. The performance seems about equal, but because the cache contains multiple versions of a single file we should spend less time transpiling files when switching branches often.

@spalger spalger added Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes labels Feb 3, 2023
@spalger spalger marked this pull request as ready for review February 4, 2023 01:01
@spalger spalger requested a review from a team as a code owner February 4, 2023 01:01
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger spalger changed the title [kbn/babel-register] improve cache performance by using fewer databases [kbn/babel-register] improve cache performance Feb 6, 2023
package.json Outdated
@@ -475,6 +475,7 @@
"d3-shape": "^2.1.0",
"d3-time": "^2.1.1",
"d3-transition": "^3.0.1",
"date-fns": "^2.29.3",
Copy link
Member

Choose a reason for hiding this comment

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

nit: looks like this can be a dev dependency

@spalger spalger enabled auto-merge (squash) February 7, 2023 01:49
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger spalger merged commit 1ee97e1 into elastic:main Feb 7, 2023
@spalger spalger deleted the improve/babel-cache-speed branch February 7, 2023 02:50
@kibanamachine kibanamachine added v8.7.0 backport:skip This commit does not require backporting labels Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants