The document describes Accordion, a novel in-memory compaction algorithm for HBase that improves write performance. Accordion applies the log-structured merge tree design used in LSM databases to HBase's memory data structure. This transforms random writes to sequential writes, keeping more data in memory for longer. As a result, Accordion achieves higher write throughput, lower disk I/O, and reduced read latency compared to HBase's previous approach. Accordion has been integrated into HBase 2.0 as the default memory compaction implementation.