Closed holtgrewe closed 1 year ago
cargo bench
result for current phf implementation
After switching to byte arrays with builtin match
(two changes, not 100% clear where time is added/lost).
Note: converting to a hard-coded trie (nested match) does not help. Creating result with capacity helps a bit (5%).
Even faster, with fast hash maps
Changing everything to bytes makes the interfaces painful.
I found an implementation that will allow to keep interfaces using str
and String
but still gives a speedup of almost 4x.
A lot of time in
mehari
is consumed in thetranslate_cds
implementation.We should properly tune and benchmark this function in
hgvs-rs
.