1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2025-06-29 16:22:46 +02:00
seaweedfs/weed/storage/needle_map/old
Lisandro Pin bed0a64693
New needle_map.CompactMap() implementation for reduced memory usage (#6842)
* Rework `needle_map.CompactMap()` to maximize memory efficiency.

* Use a memory-efficient structure for `CompactMap` needle value entries.

This slightly complicates the code, but makes a **massive** difference
in memory efficiency - preliminary results show a ~30% reduction in
heap usage, with no measurable performance impact otherwise.

* Clean up type for `CompactMap` chunk IDs.

* Add a small comment description for `CompactMap()`.

* Add the old version of `CompactMap()` for comparison purposes.
2025-06-05 14:03:29 -07:00
..
compact_map.go New needle_map.CompactMap() implementation for reduced memory usage (#6842) 2025-06-05 14:03:29 -07:00
compact_map_perf_test.go New needle_map.CompactMap() implementation for reduced memory usage (#6842) 2025-06-05 14:03:29 -07:00
compact_map_test.go New needle_map.CompactMap() implementation for reduced memory usage (#6842) 2025-06-05 14:03:29 -07:00