Skip to content

Load mapping info lazily#69

Merged
xd009642 merged 1 commit into
xd009642:masterfrom
pvdrz:lazy-mapping-info
Nov 21, 2025
Merged

Load mapping info lazily#69
xd009642 merged 1 commit into
xd009642:masterfrom
pvdrz:lazy-mapping-info

Conversation

@pvdrz

@pvdrz pvdrz commented Nov 21, 2025

Copy link
Copy Markdown
Contributor

This PR does slight changes to the CoverageMapping method so it loads the mapping info for each object file lazily.

The main motivation behind this change is that loading the mapping info for a coverage report with many object files can cause memory issues easily. I encountered this issue when trying to load the coverage information resulting from running doctests, where there is one binary for each doctest that's being run.

@xd009642 xd009642 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM 👍

@xd009642 xd009642 merged commit f48be89 into xd009642:master Nov 21, 2025
6 checks passed
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