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

Do not persist SourceMap contents in FileInBundleCache #1359

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

Swatinem
Copy link
Member

@Swatinem Swatinem commented Feb 5, 2024

According to metrics, the cache is quite effective in ST and on LPQ instances. Less so in production, most likely because the cache is too small.

To increase the effective size of the cache, we do not store the actual sourcemap contents in it anymore. These contents are only used for sourcemapcache generation, and are not usually required.

#skip-changelog

@Swatinem Swatinem requested a review from loewenheim February 5, 2024 10:57
@Swatinem Swatinem self-assigned this Feb 5, 2024
According to metrics, the cache is quite effective in ST and on LPQ instances. Less so in production, most likely because the cache is too small.

To increase the effective size of the cache, we do not store the actual sourcemap contents in it anymore. These contents are only used for sourcemapcache generation, and are not usually required.
When we got a file from the cache, we were not properly recording this metric.
crates/symbolicator-js/src/lookup.rs Outdated Show resolved Hide resolved
crates/symbolicator-js/src/lookup.rs Show resolved Hide resolved
crates/symbolicator-js/src/lookup.rs Outdated Show resolved Hide resolved
crates/symbolicator-js/src/sourcemap_cache.rs Outdated Show resolved Hide resolved
@Swatinem Swatinem force-pushed the swatinem/lazy-bundle-sourcemap branch from c47708c to a8ee1cf Compare February 6, 2024 16:30
@Swatinem Swatinem force-pushed the swatinem/lazy-bundle-sourcemap branch from a8ee1cf to 3498cec Compare February 7, 2024 08:25
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Attention: 78 lines in your changes are missing coverage. Please review.

Comparison is base (6613a10) 75.99% compared to head (3498cec) 75.75%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1359      +/-   ##
==========================================
- Coverage   75.99%   75.75%   -0.25%     
==========================================
  Files         100      101       +1     
  Lines       14835    14946     +111     
==========================================
+ Hits        11274    11322      +48     
- Misses       3561     3624      +63     

@Swatinem Swatinem merged commit 11d7533 into master Feb 7, 2024
14 checks passed
@Swatinem Swatinem deleted the swatinem/lazy-bundle-sourcemap branch February 7, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants