xfy
8cc3fdef6f
perf(handler): optimize static file serving performance
- Add pathPrefixLen for zero-allocation path stripping
- Precompute ETag in FileCache.Set, reuse on cache hits
- Add MIME LRU cache with O(1) operations using container/list
- Remove sharded cache (eager LRU was slower than single-lock)
- Add FileInfo cache to reduce os.Stat calls (TTL-only strategy)
- Adjust test expectations for normalized root path format
Benchmark results: Lookup 12.7µs → 10.6µs (16% improvement)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-30 14:17:56 +08:00
..
2026-04-03 14:07:42 +08:00
2026-04-24 10:05:39 +08:00
2026-04-30 14:17:56 +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-30 10:37:45 +08:00
2026-04-30 14:17:56 +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