Comments (3)
Hello,
You mean in the Hash function
section? I could effectively recommend the usage of std::hash<std::string_view>
if the user has access to it (C++17) and fall-back to CityHash otherwise if it's what you mean.
Or is it replacing the default FNV-1a function with std::hash
?
from hat-trie.
Hi Thibaut,
Yes, I mean the "Hash function" section. I think you could use std::hash by default in your source code and recommend users to use std::hash by default and take a look at xxHash, farmhash, or clhash if the default hash function is not fast enough. BTW, you can find comparison graphs for the best hash functions here https://github.com/hungptit/clhash/blob/convert.to.header.only.library/benchmark/
Thanks,
Hung
from hat-trie.
Hi,
In the end I replaced the default FNV-1a hash function to std::hash<std::string_view>
if std::string_view
is detected. There was not much reason to use it as default hash function when C++17 or above was used.
Thanks,
Thibaut
from hat-trie.
Related Issues (20)
- Add check for _MSVC_LANG in addition to __cplusplus HOT 1
- boolean value is not supported HOT 1
- Question: Visiting each key during mutations HOT 2
- how do u iterate through hat trie HOT 1
- possible to provide golang binding for golang? HOT 1
- possible to rewrite in rustlang? HOT 1
- will there be an advantage if this is written with lsm backed by disk like rocksdb? HOT 2
- cmake --build . <- failed with boost 1.70 HOT 2
- is this production ready? HOT 1
- possible to implement a lru cache example using this hat trie? HOT 2
- benchmark against rust? HOT 1
- possible to pls show how to use emplace function? HOT 1
- any comparison with patricia trie and adaptive radix tree? HOT 1
- Is load factor 16 or greater possible? HOT 1
- windows conflict with windows.h HOT 1
- macos trie_map exceed size HOT 1
- hat-trie behaves wrong when burst-threshold is set to 65536 or larger
- VS natvis visualizer
- support weighted nodes
- Segmentation fault when map is iterated after erase prefix
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hat-trie.