Implement ART(Adaptive Radix Tree) on sequential#11
Open
codingskynet wants to merge 20 commits intomainfrom
Open
Implement ART(Adaptive Radix Tree) on sequential#11codingskynet wants to merge 20 commits intomainfrom
codingskynet wants to merge 20 commits intomainfrom
Conversation
Owner
Author
|
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. |
Owner
Author
|
MacBook Air (M1, 2020)에서 부정확하지만, PREFIX_LEN을 12에서 13으로 바꾸고 |
Owner
Author
|
와 이거 언제 뜯어 고치냐... |
Owner
Author
|
조금 고민해봤는데, 어차피 실제로 DB 짤 때는 이거 안 쓸 거 같아서, ascii(or base64급)에 맞게 최적화한 ART 만드는 거름으로 쓰는 게 좋을 듯? 이거는 그냥 legacy로 두면 뭐 기념비적일 듯 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#10 에서 연구한, sequential에서 BTree보다 빠르고, HashMap보다도 우수한 캐시히트를 가지는 자료구조를 구현해봤습니다.
간략하게 PoC 정도로만 만들었기 때문에, PR 생성 이후 K를 무조건 String(for ascii)으로 고정시키고, Node256을 128로 바꾸는 패치 등을 진행해보는 것도 괜찮아 보입니다.