Repository navigation
Commit c092061
committed
Compact obj_free candidates in place
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.1 parent 078de90 commit c092061
1 file changed
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
140 | 137 | | |
141 | | - | |
142 | 138 | | |
143 | 139 | | |
144 | | - | |
| 140 | + | |
| 141 | + | |
145 | 142 | | |
146 | | - | |
| 143 | + | |
| 144 | + | |
147 | 145 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 146 | + | |
151 | 147 | | |
152 | 148 | | |
153 | 149 | | |
| |||
0 commit comments