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

fix: Write SourceMapCache to disk in cabi #711

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

Swatinem
Copy link
Member

Instead of holding the SourceMapCache buffer in memory when it is being used via the cabi/python bindings, write it to a tempfile which is automatically cleaned up when the SourceMapCache is dropped.

This should reduce memory pressure and allow the OS to page that out.

Instead of holding the SourceMapCache buffer in memory when it is
being used via the cabi/python bindings, write it to a tempfile which
is automatically cleaned up when the SourceMapCache is dropped.

This should reduce memory pressure and allow the OS to page that out.
@Swatinem Swatinem requested a review from a team November 18, 2022 11:11
@codecov-commenter
Copy link

Codecov Report

Merging #711 (ad24f80) into master (0b0b915) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #711      +/-   ##
==========================================
- Coverage   72.73%   72.72%   -0.01%     
==========================================
  Files          92       92              
  Lines       18424    18426       +2     
==========================================
+ Hits        13400    13401       +1     
- Misses       5024     5025       +1     

@Swatinem Swatinem merged commit 211d9fa into master Nov 18, 2022
@Swatinem Swatinem deleted the fix/smcache-tempfile branch November 18, 2022 11:38
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