mun icon indicating copy to clipboard operation
mun copied to clipboard

perf: use a slab allocator for `ObjectInfo`

Open foeb opened this issue 5 years ago • 3 comments

This should improve performance of the GC by limiting allocations of ObjectInfo to large chunks.

Originally, I was hoping to use the allocator from the slab crate out of the box, but that would cause all of the values to move when ever it needed to resize. I added the pinned_slab module to get around that limitation.

closes #106

foeb avatar Apr 12 '20 03:04 foeb

Codecov Report

Merging #129 into master will increase coverage by 0.02%. The diff coverage is 91.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #129      +/-   ##
==========================================
+ Coverage   83.59%   83.62%   +0.02%     
==========================================
  Files         158      158              
  Lines       10716    10710       -6     
==========================================
- Hits         8958     8956       -2     
+ Misses       1758     1754       -4     
Impacted Files Coverage Δ
crates/mun_memory/src/gc/mark_sweep.rs 90.15% <91.30%> (+2.47%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 75d7a20...1420972. Read the comment docs.

codecov[bot] avatar Apr 12 '20 03:04 codecov[bot]

@baszalmstra This is ready for review again :smile:

I moved the Pool code to another repo: https://github.com/foeb/pinned_slab

foeb avatar Apr 19 '20 22:04 foeb

Hi @foeb. I hope all is well.

@baszalmstra left some requested changes. Do you need additional information on those, or have you not had time to look at them yet?

If there is anything we can do to help out, please let us know

Wodann avatar Jun 07 '20 07:06 Wodann

Im closing this since its become very stale.

baszalmstra avatar Dec 05 '22 19:12 baszalmstra