Commit Graph

9 Commits

Author SHA1 Message Date
045ac8b5a3 Implement performance optimizations v1.1.0
- Replace map-based Params with slice-based structure for 25-40% reduction in allocations
- Implement zero-allocation path parsing with pre-allocation
- Add enhanced memory pooling for parameters, segments, and string builders
- Optimize wildcard parameter handling with string builders
- Add comprehensive performance benchmarks
- Achieve 14-49% performance improvements across all route types
- Maintain full API compatibility

Performance improvements:
- Static routes: 14.6% faster (682.1 vs 798.5 ns/op)
- Parameter routes: 24.7% faster (868.9 vs 1154 ns/op)
- Wildcard routes: 41.6% faster (979.3 vs 1676 ns/op)
- Multiple parameters: 41.5% faster (1026 vs 1753 ns/op)
- Middleware: 49.0% faster (1930 vs 3782 ns/op)
- Route groups: 49.5% faster (1442 vs 2855 ns/op)
- Large router: 24.5% faster (833.0 vs 1103 ns/op)
v1.1.0
2025-10-26 18:06:15 +01:00
db42316b49 Optimize tree structure with hash map for static children 2025-10-26 12:59:45 +01:00
152460aed6 added comparison 2025-10-26 12:29:15 +01:00
6f87960f3a support for parameters, middleware, and route groups. 2025-10-26 12:25:18 +01:00
6c318a988c update go version 2025-10-26 12:11:18 +01:00
36512affab add gitignore 2025-10-26 12:10:01 +01:00
6fce569a0a migration to code.icod.de v1.0.1 2022-10-18 12:26:16 +02:00
89e366d9d0 initial 2021-10-31 09:06:30 +01:00
8878c5e89c initial v1.0.0 2021-10-31 09:03:21 +01:00