sonic-rs
sonic-rs copied to clipboard
feat(object::): implement multi-tier adaptive optimization for Object::get
- Add size-based adaptive search strategies
What type of PR is this?
Check the PR title.
- [ ] This PR title match the format: <refactor>(optional scope): <description>
- [ ] The description of this PR title is user-oriented and clear enough for others to understand.
- [ ] Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en: zh(optional):
Object::get方法引入了基于对象大小的智能优化策略
- 动态策略切换:根据对象规模自动选择linear、SIMD 、hash或cache
- 兼容性:完全向后兼容,无 API 变更
- 关键优化:
- 中对象采用 SIMD 加速字符串比对
- 大对象启用全局缓存哈希表
(Optional) Which issue(s) this PR fixes:
Fixes #168
(optional) The PR that updates user documentation:
@cursor review
cloud you give more benchmarks to show the optimization
thanks, cloud you provide the benchmark results