Press "Enter" to skip to content

Yac 3.0 Released: 42% Higher Throughput for Common Cache Workloads

Yac 3.0 发布, 进一步优化了单机 PHP 共享内存缓存的核心读写路径:引入 Inline 存储,让短 key 携带短字符串和 double 值时不必分配 values block;用 Versioned Snapshot 降低读路径协调成本;通过 Memory Epoch 在可证明数据稳定时跳过 CRC-32C,并保留必要的校验 fallback;同时统一内部 serializer,并新增 Yac::has() 等 API。基准测试中,Yac 3.0 相比 2.4.2 在 6B 到 8KB 的匹配负载中几何平均吞吐提升 42.3%,常见小值路径最高提升 95.4%。

Filed in AI Coding, English, PHP7, PHP8, PHP应用
with 0 Comment

Yac 3.0 Released: 42% Higher Throughput for Common Cache Workloads

Yac 3.0 further optimizes the core read and write paths of its single-node shared-memory PHP cache. Inline storage, versioned snapshots, epoch-based CRC validation, a new internal serializer, and Yac::has() deliver a 42.3% geometric-mean throughput improvement over Yac 2.4.2 across matched 6 B to 8 KB workloads, with gains of up to 95.4% on common small-value paths.

Filed in AI Coding, English, PHP7, PHP8, PHP应用
with 0 Comment

Yac 2.4.0 Released — 64% Faster Small-Value Reads

Yac 2.4.0 is out. It started with my blog cache being flooded by empty arrays: WordPress search negative caches and Akismet's recheck cron keep writing entries nobody reads, eating values memory and triggering recycles. The headline change is embedded values — small scalars are encoded directly into the slot's pointer word and never touch the values area. Also: LZ4 replaces FastLZ (~3.5x faster decompression), get() gains $default, and dump() gains pagination plus per-entry hits/atime stats. Mixed-workload reads are up 70%, and my blog's values memory dropped from 23.5M to 12.4M.

Filed in AI Coding, English, PHP7, PHP8, PHP应用
with 0 Comment

Wechatian: Let Your AI Reach You on WeChat

Wechatian is an Obsidian plugin that connects WeChat and your Obsidian vault in both directions with no third-party relay: text, images and article links sent from WeChat are clipped into the vault automatically, and any program that can write a file can send you WeChat messages via a file outbox through Tencent's ilink gateway. With minimal setup your AI Agent can notify you on WeChat the moment a job finishes — no more babysitting the screen.

Filed in AI Coding, English, Js/CSS, PHP Extension, PHP8, PHP应用, 随笔
with 0 Comment