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-30 10:37:45 +08:00
2026-04-28 18:00:48 +08:00
2026-04-30 14:17:56 +08:00
2026-04-30 14:17:56 +08:00
2026-04-07 15:36:09 +08:00
2026-04-07 15:36:09 +08:00
2026-04-29 18:30:14 +08:00
2026-04-30 13:42:53 +08:00
2026-04-20 10:59:53 +08:00
2026-04-30 10:37:45 +08:00
2026-04-30 13:42:53 +08:00
2026-04-20 10:59:53 +08:00
2026-04-30 14:17:56 +08:00
2026-04-30 14:17:56 +08:00