Repository navigation
zen-plus v3.0.0 — 引擎优化版 / Engine-Optimized Build
中文
zen-plus 首个正式版本(v3.0.0,基于上游 v0.25.1):过滤规则引擎两轮深度优化,拦截行为与上游完全一致。
改进
- 引擎匹配耗时 -60.7%(370.3µs → 145.7µs/请求,真实订阅 61.1 万规则语料)
- 每请求堆分配 -93.4%(1175 次/132KB → 225 次/8.7KB)
- 引擎 live 内存 -21.5%(494 → 388 B/规则)
- 拦截有效性不变:d3ward 测试页 96.2% 分数持平;黄金回放 36,231×2 全一致;1 万真实 URL 与 20 万模糊 URL 等价 0 差异
手段
正则形状特化、最稀 token 反向索引(Ghostery 技巧)、请求级缓存、规则/树节点结构瘦身、池化低分配遍历。详见 docs/benchmarks。
安装
下载 Zen.exe 覆盖 %LOCALAPPDATA%\Programs\Zen\Zen.exe(配置与过滤器缓存通用)。SHA256 见下方 Assets。
English
First stable zen-plus release (v3.0.0, based on upstream v0.25.1): two rounds of deep filter-engine optimization with blocking behavior identical to upstream.
Improvements
- Engine matching time -60.7% (370.3µs → 145.7µs/request, 611k-rule real-subscription corpus)
- Per-request heap allocations -93.4% (1,175/132KB → 225/8.7KB)
- Engine live memory -21.5% (494 → 388 B/rule)
- Blocking effectiveness unchanged: d3ward score 96.2%; golden replay 36,231×2 exact; 10k real-URL + 200k fuzz equivalence 0 diffs
Means
Regexp shape specialization, rarest-token reverse index (Ghostery technique), per-request caches, slimmed rule/node layouts, pooled low-alloc traversal. See docs/benchmarks.
Install
Replace %LOCALAPPDATA%\Programs\Zen\Zen.exe (config and filter caches are shared). SHA256 under Assets.
版本说明 / Versioning note
zen-plus 启用自己的版本线(3.x),与上游 0.x 数字不可比;本次基于上游 v0.25.1,以后每次合并上游递增 3.x,基线写进 Release 说明。
zen-plus uses its own version line (3.x), not comparable with upstream's 0.x; this release is based on upstream v0.25.1, and each upstream merge bumps 3.x with the base stated here.