Unusual Performance Optimization Cases: the ClickHouse Example
summary
The talk examines practical performance optimization cases encountered by ClickHouse developers, focusing on trade-offs like when decompression can be faster than copying, the fastest ways to transpose Structure of Arrays to Array of Structures, and optimal file-reading methods (read vs O_DIRECT vs mmap vs io_uring). It also explains why ClickHouse MergeTree tables can outperform in-memory tables and describes empirical investigations and optimizations used in ClickHouse.
AI-written summary · about
