Skip to content

Commit 50a63ec

Browse files
authored
Fixes to the blog posts about 8.1.0 release and hash table (#232)
Follow-up of #195 and #227. Signed-off-by: Viktor Söderqvist <[email protected]>
1 parent 46b75eb commit 50a63ec

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

content/blog/2025-03-28-new-hash-table/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ When the CPU loads some data from the main memory into the CPU cache, it does so
5757
in fixed size blocks called cache lines. The cache-line size is 64 bytes on
5858
almost all modern hardware. Recent work on hash tables, such as [Swiss
5959
tables](https://abseil.io/about/design/swisstables), are highly optimized to
60-
store and access data within a single cache line. If the key you're not looking
60+
store and access data within a single cache line. If the key you're looking
6161
for isn't found where you first look for it (due to a hash collision), then it
6262
should ideally be found within the same cache line. If it is, then it's found
6363
very fast once this cache line has been loaded into the CPU cache.

content/blog/2025-04-02-valkey-8-1-0-ga.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ The fork copy-on-write memory overhead is reduced by up to [47%](https://github.
6767

6868
### Sorted set and hyperloglog and bitcount optimizations
6969

70-
`ZRANK` command, which serves a popular usecase in operating Leaderboards, was optimized to perform up to [45%](https://github.com/valkey-io/valkey/pull/1389) faster, depending on the sorted set size. This optimization requires a C++ compiler, and is currently an opt-in feature.
70+
`ZRANK` command, which serves a popular usecase in operating Leaderboards, was optimized to perform up to [45%](https://github.com/valkey-io/valkey/pull/1389) faster, depending on the sorted set size.
71+
72+
`ZADD` and other commands that involve floating point numbers are optimized by [`fast_float`](https://github.com/valkey-io/valkey/pull/1260) to parse floats using SIMD instructions.
73+
This optimization requires a C++ compiler, and is currently an opt-in feature at compile time.
7174

7275
The probabilistic hyperloglog is another great data type, used for counting unique elements in very large datasets whilst using only 12KB of memory regardless of the amount of elements. By using the modern CPUs Advanced Vector Extensions of x86, Valkey 8.1 can achieve a [12x](https://github.com/valkey-io/valkey/pull/1293) speed for the operations like `PFMERGE` and `PFCOUNT` on hyperloglog data types.
7376

0 commit comments

Comments
 (0)