sonic-rs icon indicating copy to clipboard operation
sonic-rs copied to clipboard

feat(object::): implement multi-tier adaptive optimization for Object::get

Open dongowu opened this issue 3 months ago • 4 comments

  • 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方法引入了基于对象大小的智能优化策略

  1. ​​动态策略切换​​:根据对象规模自动选择linear、SIMD 、hash或cache
  2. 兼容性​​:完全向后兼容,无 API 变更
  3. ​​关键优化​​
    • 中对象采用 SIMD 加速字符串比对
    • 大对象启用全局缓存哈希表

(Optional) Which issue(s) this PR fixes:

Fixes #168

(optional) The PR that updates user documentation:

dongowu avatar Aug 12 '25 11:08 dongowu

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 12 '25 11:08 CLAassistant

@cursor review

PureWhiteWu avatar Aug 13 '25 11:08 PureWhiteWu

cloud you give more benchmarks to show the optimization

liuq19 avatar Sep 15 '25 06:09 liuq19

thanks, cloud you provide the benchmark results

liuq19 avatar Sep 26 '25 07:09 liuq19