JJianliang Wang[Optimize] Refactor `lepus::Dictionary`
| Files | Last commit | Last update |
|---|---|---|
[Optimize] Refactor `lepus::Dictionary` This commit brings several functional improvements and performance optimizations to the base library. 1. Optimized `boost::unordered_flat_map` to understand the `IsTriviallyRelocatable` type trait, significantly improving data movement performance during buffer expansion. 2. Added the `base::HybridMap` template type, which dynamically switches the underlying container type based on the amount of data and supports externally defined data movement and iterator protocols. 3. Based on the aforementioned improvements to basic capabilities and previous `base::Vector` improvements, `lepus::Dictionary` has been refactored. `base::HybridMap` has been used instead of the original `std::unordered_map`, significantly improving performance. 4. Extensive unit tests have been added. SkipChecks: macro issue:m-6481490102 | 1 year ago |