xfy
58ed02ceac
perf(cache): FileEntry 池化减少 GC 压力
- 添加 entryPool sync.Pool 复用 FileEntry 结构体
- Set 新建路径使用 pool.Get() 获取条目
- removeEntry 重置条目后 pool.Put() 回池
- 添加 BenchmarkFileCacheSet_Pooled 对比测试
Benchmark 结果: steady-state 4 allocs/op
(entry 复用生效,time.Now/list.Element/map 分配不可避免)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 09:39:18 +08:00
..
2026-04-03 14:07:42 +08:00
2026-04-24 10:05:39 +08:00
2026-04-29 09:39:18 +08:00
2026-04-27 17:06:55 +08:00
2026-04-24 10:07:27 +08:00
2026-04-28 10:13:47 +08:00
2026-04-29 09:39:18 +08:00
2026-04-24 10:07:27 +08:00
2026-04-28 20:11:20 +08:00
2026-04-24 10:07:27 +08:00
2026-04-24 10:05:39 +08:00