Hacker News new | ask | show | jobs
by orlp 1090 days ago
Author of slotmap here.

There is absolutely no need for unsafe in slotmap. I chose to use unsafe (wrapped in a safe API) to reduce memory usage using intrusive linked freelists. If done using safe Rust this would involve `enum`s that would take up extra space.

2 comments

Slotmap is one of my favorite crates, by the way. Thank you for putting it out there!
Thus not adequate for performance requirements.
.... that has nothing to do with the allocator though