# Plush GC: From 117ms to 7ms with a Classic Algorithm

Original title: Speeding Up the Plush Garbage Collector

> Hacker News story 49330246 · language: en · submitted 2026-08-17
> Web version: https://zeli.app/story/49330246
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 3 · by [maxime_cb](<https://news.ycombinator.com/user?id=maxime_cb>) · 💬 0
[original](<https://pointersgonewild.com/2026-08-17-speeding-up-the-plush-garbage-collector/>) · [HN discussion](<https://news.ycombinator.com/item?id=49330246>)

## Summary

The author's toy language Plush had a copying GC that was too slow, taking 117ms to collect a million live objects. After discovering Rust's default HashMap was a performance bottleneck, they switched to FxHashMap, cutting time to 43ms. But the real win came from abandoning the hash map for forwarding pointers, following Cheney's original algorithm, which brought collection down to 7ms—16.7x faster. The post also covers using mmap to allow dynamic growth of message allocators without invalidating pointers.

## Key quote

> Another indication that we should respect the wisdom of our elders and their sacred publications.

---

## Cite

- Page: https://zeli.app/story/49330246
- Date: 2026-08-17
- Source: pointersgonewild.com (https://pointersgonewild.com/2026-08-17-speeding-up-the-plush-garbage-collector/)
- Hacker News: https://news.ycombinator.com/item?id=49330246

## Other languages

- zh: https://zeli.app/zh/story/49330246 · markdown: https://zeli.app/zh/story/49330246.md
- ja: https://zeli.app/ja/story/49330246 · markdown: https://zeli.app/ja/story/49330246.md
- ko: https://zeli.app/ko/story/49330246 · markdown: https://zeli.app/ko/story/49330246.md
- de: https://zeli.app/de/story/49330246 · markdown: https://zeli.app/de/story/49330246.md
- es: https://zeli.app/es/story/49330246 · markdown: https://zeli.app/es/story/49330246.md
- ru: https://zeli.app/ru/story/49330246 · markdown: https://zeli.app/ru/story/49330246.md
