aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/needle_map/compact_map_test.go
AgeCommit message (Collapse)AuthorFilesLines
2025-06-05New `needle_map.CompactMap()` implementation for reduced memory usage (#6842)Lisandro Pin1-176/+412
* 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-02fix insert beyond look back window (#6838)Chris Lu1-0/+20
2025-05-28Further improve memory usage of `needle_map.CompactMap()`. (#6825)Lisandro Pin1-7/+8
2025-05-23Rewrite `needle_map.CompactMap()` for more efficient memory usage (#6813)Lisandro Pin1-1/+1
2023-11-26go fmtchrislu1-4/+4
2022-10-09fix: compact_map get error mismatching cokie (#3748)binbinshi1-0/+39
* fix: compact_map get error * fix: CompactSection delete lock and move test to compact_map Co-authored-by: shibinbin <shibinbin@megvii.com>
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-2/+2
2022-06-23test compact map with snowflake sequencerchrislu1-0/+15
2020-08-19fix testsChris Lu1-3/+3
2020-08-18refactoringChris Lu1-2/+2
2020-08-18refactoring to typed SizeChris Lu1-5/+5
Go is amazing with refactoring!
2019-12-24go fmtChris Lu1-2/+2
2019-12-24testingChris Lu1-1/+8
2019-05-18generate ec01~ec14, generate ecx file with sorted needle valuesChris Lu1-1/+1
2019-04-18refactoringChris Lu1-0/+159