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

Optimze SourceBundle/DebugSession #787

Merged
merged 2 commits into from
May 15, 2023
Merged

Optimze SourceBundle/DebugSession #787

merged 2 commits into from
May 15, 2023

Conversation

Swatinem
Copy link
Member

This gives each SourceBundleDebugSession its own archive, so multiple sessions do not contend on the same lock. Also creates the manifest index eagerly and shares that across debug sessions. While previously the complete SourceBundle was cached in memory and shared, each DebugSession would still create its own index on each access. Another driveby improvement is to provide a consuming SourceFileDescriptor::into_contents to avoid a clone.

This gives each `SourceBundleDebugSession` its own `archive`, so multiple sessions do not contend on the same lock.
Also creates the manifest index eagerly and shares that across debug sessions. While previously the complete `SourceBundle` was cached in memory and shared, each `DebugSession` would still create its own index on each access.
Another driveby improvement is to provide a consuming `SourceFileDescriptor::into_contents` to avoid a clone.
@Swatinem Swatinem requested a review from a team May 15, 2023 14:25
@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Merging #787 (c4b0eb5) into master (3b2f1f6) will decrease coverage by 0.01%.
The diff coverage is 88.88%.

❗ Current head c4b0eb5 differs from pull request most recent head d88599a. Consider uploading reports for the commit d88599a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #787      +/-   ##
==========================================
- Coverage   74.99%   74.98%   -0.01%     
==========================================
  Files          71       71              
  Lines       15570    15585      +15     
==========================================
+ Hits        11676    11687      +11     
- Misses       3894     3898       +4     

@Swatinem Swatinem enabled auto-merge (squash) May 15, 2023 14:36
@Swatinem Swatinem merged commit c44c475 into master May 15, 2023
@Swatinem Swatinem deleted the opt-sourcebundle branch May 15, 2023 14:44
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.

2 participants