Skip to content

Compact obj_free candidates in place - #136

Open
eightbitraptor wants to merge 1 commit into
mainfrom
mvh-obj-free-retain-mut
Open

eightbitraptor wants to merge 1 commit into
mainfrom
mvh-obj-free-retain-mut

Conversation

@eightbitraptor

Copy link
Copy Markdown
Member

use retain_mut in process_obj_free_candidates instead of building a new Vec on every GC.

This saves about 38MiB of peak RSS when running the Lobsters benchmark with 12 workers.

@eightbitraptor
eightbitraptor force-pushed the mvh-obj-free-retain-mut branch from 9378e38 to 89d87f8 Compare November 2, 2026 22:01
use retain_mut in process_obj_free_candidates instead of building a new
Vec on every GC.

This saves about 38MiB of peak RSS when running the Lobsters benchmark
with 12 workers.
@eightbitraptor
eightbitraptor force-pushed the mvh-obj-free-retain-mut branch from 89d87f8 to cd3a7c2 Compare November 4, 2026 11:45
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