ClickHouse/dbms/tests/queries
Azat Khuzhin 420089c301
Add new dictionary layout (sparse_hashed) that is more memory efficient
With this new layout, sparsehash will be used over default HashMap,
sparsehash is more memory efficient but it is also slower.

So in a nutshell:
- HashMap uses ~2x more memory then sparse_hash_map
- HashMap ~2-2.5x faster then sparse_hash_map
(tested on lots of input, and the most close to production was
dictionary with 600KK hashes and UInt16 as value)

TODO:
- fix allocated memory calculation
- getBufferSizeInBytes/getBufferSizeInCells interface
- benchmarks

v0: replace HashMap with google::sparse_hash_map
v2: use google::sparse_hash_map only when <sparse> isset to true
v3: replace attributes with different layout
v4: use ch hash over std::hash
2019-09-21 02:22:40 +03:00
..
0_stateless Add new dictionary layout (sparse_hashed) that is more memory efficient 2019-09-21 02:22:40 +03:00
1_stateful better setting name: joined_subquery_requires_alias 2019-09-02 15:53:31 +03:00
bugs
__init__.py
.gitignore
conftest.py
query_test.py
server.py
shell_config.sh Increase timeout for "stack overflow" test because it may take a long time in debug build 2019-08-23 18:42:45 +03:00