-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ART(Adaptive Radix Tree) on sequential #11
base: main
Are you sure you want to change the base?
Conversation
Benchmark: cargo criterion --bench sequential (only run bench_string_vs_btreemap)
The branch art(b3f3b53) result:
On geometric mean, ART is about 1.739x faster than std::BTreeMap. |
MacBook Air (M1, 2020)에서
부정확하지만, PREFIX_LEN을 12에서 13으로 바꾸고 |
와 이거 언제 뜯어 고치냐... |
조금 고민해봤는데, 어차피 실제로 DB 짤 때는 이거 안 쓸 거 같아서, ascii(or base64급)에 맞게 최적화한 ART 만드는 거름으로 쓰는 게 좋을 듯? 이거는 그냥 legacy로 두면 뭐 기념비적일 듯 |
#10 에서 연구한, sequential에서 BTree보다 빠르고, HashMap보다도 우수한 캐시히트를 가지는 자료구조를 구현해봤습니다.
간략하게 PoC 정도로만 만들었기 때문에, PR 생성 이후 K를 무조건 String(for ascii)으로 고정시키고, Node256을 128로 바꾸는 패치 등을 진행해보는 것도 괜찮아 보입니다.