Skip to content
Opensource internals
  • Posts

Data structures

ClickHouse Recycles Small Objects Through Per-Size Free Lists

Oct 23, 2026 18 min read Jay Hubbert

ClickHouse’s ArenaWithFreeLists keeps one free list per power-of-two size class and threads the free-list link through the freed block itself.

ClickhouseInternalsMemoryPerformanceData structures

Read more →

ClickHouse's LRU Cache Keeps Its Order in a Linked List

Oct 23, 2026 20 min read Jay Hubbert

ClickHouse’s LRU cache is a hash map of cells pointing into a linked list, so a lookup is an O(1) splice and eviction is a pop from the front.

ClickhouseInternalsCachingPerformanceData structures

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·