-
Notifications
You must be signed in to change notification settings - Fork 15
RUM-8910: Improve big mapping file handling in the shrinking process #326
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
RUM-8910: Improve big mapping file handling in the shrinking process #326
Conversation
| shrinkedFile.bufferedWriter(bufferSize = MAPPING_OPTIMIZED_FILE_WRITE_BUFFER_SIZE) | ||
| .use { shrinkedFileWriter -> | ||
| mappingFile.useLines { lines -> | ||
| lines.run { if (mappingFileTrimIndents) map { it.trimStart() } else this } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (shrinkedFile.exists()) { | ||
| shrinkedFile.delete() | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| shrinkedFile.bufferedWriter(bufferSize = MAPPING_OPTIMIZED_FILE_WRITE_BUFFER_SIZE) | ||
| .use { shrinkedFileWriter -> | ||
| mappingFile.useLines { lines -> | ||
| lines.run { if (mappingFileTrimIndents) map { it.trimStart() } else this } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #326 +/- ##
=============================================
- Coverage 77.94% 77.88% -0.06%
- Complexity 258 260 +2
=============================================
Files 31 31
Lines 943 945 +2
Branches 113 113
=============================================
+ Hits 735 736 +1
Misses 151 151
- Partials 57 58 +1
🚀 New features to boost your workflow:
|
What does this PR do?
Mapping file can read few hundred MBs and so this PR improves its handling in such case by:
Review checklist (to be filled by reviewers)