小红书开源 REDOHC:32 线程纯读吞吐达 Cassandra OHC 的 3.38 倍
小红书技术REDtech · wechat · 2026-10-09
Xiaohongshu's search/ads team open-sourced REDOHC (Apache 2.0), a Java off-heap cache engine powering recall paths serving tens of millions of lookups per second.
- Benchmarks vs Cassandra OHC: 3.38x throughput at 32-thread pure reads, 2.60x at 9:1 read/write; 0.001B heap allocation per read and zero GC vs 32B/op and 22 GCs.
- Architecture: lock-free reads, write-path arena allocation with atomic publish, and a single-threaded background actor handling eviction, TTL, reclamation and page returns asynchronously.
- Details include 64-byte cache-line alignment, hierarchical timer wheels for O(1) TTL, S3-FIFO eviction, and AI-assisted JIT machine-code analysis; RSS falls from 8.5GB to 51MB in 10 seconds after load.
「Infra」频道最新
- SpaceX 拟接入 8 万座美国基站,博彩市场给了 29% 成运营商概率 — Polymarket · 2026-10-23
- Modular 宣布 MAX 框架开源:AI 计算不应被单一芯片厂商锁定 — clattner_llvm · 2026-10-23
- Modular 开放 MAX 源码,要做「AI 界的 LLVM」打破芯片锁定 — clattner_llvm · 2026-10-23
- Claude 模型登陆 Google Cloud:Anthropic 托管版正式可用 — claudeai · 2026-10-23
- GLM-5.3-Flash 实现 1M token 上下文训练,较基线提升 64 倍 — AndrewLBeam · 2026-10-23
- Perplexity 联手 AMD 推便携 AI 主机,本地跑 27B 模型做实时研究 — AravSrinivas · 2026-10-23