Skip to content

Reduce the memory footprint when -z option is used#372

Merged
tylervick merged 2 commits intoXCTestHTMLReport:mainfrom
aleksandar-angelov-smule:optimize-memory-footprint
Mar 16, 2025
Merged

Reduce the memory footprint when -z option is used#372
tylervick merged 2 commits intoXCTestHTMLReport:mainfrom
aleksandar-angelov-smule:optimize-memory-footprint

Conversation

@aleksandar-angelov-smule
Copy link
Copy Markdown
Contributor

Initialization of an attachment is now inside an autoreleasepool because the memory footprint is huge when using the -z option. The memory usage jumps to 10 gigabytes under 10 seconds. Releasing the NSImage related objects at each iteration via autorelease pool reduces it to a few hundred megabytes.

Initialization of an Attachment is now inside an autoreleasepool
because the memory footprint is huge when using the -z option.
The memory usage jumps to 10 gigabytes under 10 seconds.
Releasing the NSImage related objects at each iteration via
autorelease pool reduces it to a few hundred megabytes.
Copy link
Copy Markdown
Member

@tylervick tylervick left a comment

Choose a reason for hiding this comment

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

Awesome improvement, thank you!

@tylervick tylervick merged commit 183be4d into XCTestHTMLReport:main Mar 16, 2025
4 of 5 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