# Valkey Memory Optimization, Version by Version and Encoding: How Many Bytes Did Each Release Actually Save?

DevFeed: [Valkey Memory Optimization, Version by Version and Encoding: How Many Bytes Did Each Release Actually Save?](<https://devfeed.tech/articles/valkey-memory-optimization-version-by-version-and-encoding-how-many-bytes-did-each-release-actually-save-61918.md>)

Original publisher: [Read original article](<https://www.percona.com/blog/valkey-memory-optimization/>)

Author: Percona Team

Published: 2026-09-29T15:33:33Z

Content type: article

Language: en

Sources: [Percona](<https://devfeed.tech/sources/blog-percona.md>)

Topics: [valkey](<https://devfeed.tech/topics/valkey.md>), [Encoding](<https://devfeed.tech/topics/encoding.md>), [Compression](<https://devfeed.tech/topics/compression.md>), [version](<https://devfeed.tech/topics/version.md>), [CPU Cache](<https://devfeed.tech/topics/cpu-cache.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [caching](<https://devfeed.tech/tags/caching.md>), [cpu-cache](<https://devfeed.tech/tags/cpu-cache.md>), [memory-optimization](<https://devfeed.tech/tags/memory-optimization.md>), [valkey](<https://devfeed.tech/tags/valkey.md>)

## AI overview

A benchmark and source-code analysis compares memory use across Valkey versions 7.2.14 through 9.1.1. In the tested string-heavy workload, average key size fell from 102.48 bytes in 7.2.14 to 64.02 bytes in 9.1.1, a 37.5% reduction. The article attributes major changes to inline key storage and a redesigned hash table, while noting the results do not apply to every Valkey environment.

## Source excerpt

Introduction This RAM/Memory reduction is most useful for Valkey 9.1 environments that are key string heavy. They are used extensively in caching, sessions/authentication, real-time apps, ecomm, Ad tech/martech, and gaming. These scenarios see a reduction of 37.5%, which has been attained in our testing environments versus version 7.2.. The biggest jump in the reduction came ... Continued The post Valkey Memory Optimization, Version by Version and Encoding: How Many Bytes Did Each Release Actually Save? appeared first on Percona.