I also tested it with Redis, and it performed well there.
I found big micro benchmarking effects and small actual Redis wiring effects from a rax.c improvement for memory/speed.
I said the analysis and testing missed a few things, but it was a good analysis and testing.
I proposed to use this week of Fable 5 for Redis optimizations.
On 2025-07-02, I reported: “Instruments on MacOS no longer showing the symbols of Redis.”
I described the recurring tangent problems this way: “Every day some tangent problem that should not be there or that software itself should be able to trace.”
I reported the fix: “Solved by using dsymutil redis-server”.
Before using that fix, I said to “make sure Redis is not compiled with -flto”.
I said -flto is enabled by default with -O3.
I guessed that the last time I profiled Vector Sets, they were still built as a module and not linked to Redis itself; I presented this as a possible explanation for the changed behavior.
I described profiling as “always an eyes-opening activity.”
I said my blog used to run well on a very old Linode instance, and that I had “dismissed Linode/DigitalOcean in favour of @Hetzner_Online”.
I reported that page generation for my blog was 5 milliseconds, meaning a “local HTTP request to completion”.
I described the setup as “No web framework + Redis performs well.”
I use this page to record observations about Redis-related code density and benchmark performance, including how terminal choice affected a test.
I described C as “a very dense language.”
I worked on the code for “one month every day long hours.”
After that effort, I reacted, “after all this hacking it is like this?”
- The reported file counts were hnsw.c: 1711 lines, hnsw.h: 91 lines, and vset.c: 793 lines.
The reported total was 2595 lines.
I specified that SPACES INCLUDED in the counts.
I wrote “tons of comments” in the code.
I reported that the bulk-add-and-test-recall test took 14 seconds with MacOS terminal.
I reported that the same test took 70 seconds with Ghostty.
I said the test output only a few lines and expected Ghostty to be faster.
I had no clues, and I tried many stuff to explain the slowdown.
Using INFO commandastats, I noticed Redis reporting slower VADD execution times with Ghostty runs.
I added random.seed() to check whether the test runs were using different command sequences.
After adding the seed, I verified that both runs were sending EXACTLY the same fucking commands.
I suspected Ghostty hardware acceleration might be slowing down the server, but concluded: no: it was not that.
I asked Claude Sonnet to get some clue about the discrepancy.
Claude Sonnet suggested that maybe the processes had a different affinity.
I wondered whether running redis-server from MacOS Terminal while running the test from Ghostty meant they are not spawned from the same process so the affinity is lower.
I tested the process-affinity idea by executing Redis from Ghostty; Executing Redis from Ghostty fixed the issue.