Hacker News new | past | comments | ask | show | jobs | submit login

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.




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




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: