Htree
A balanced directory index for ext4 filesystems that uses filename hashing to keep large directories fast instead of scanning linearly.
A naive directory is just a linked list of filename-to-inode mappings. With a million files in one directory, linear search is slow. Ext4 uses a hashtree: the filename is hashed, and that hash value determines position in a balanced tree. Lookup becomes logarithmic instead of linear. The technique existed in proprietary filesystems earlier, but ext4 made it open and standard in 2008.
Under the hood it's still stored across disk blocks, but query performance shifts from O(n) to O(log n).