meiseayoung
|
1fc22044c3
|
perf: optimize HTTP parsing with zero-allocation techniques
- Refactor parse_path_and_query() to use single-pass traversal instead of split()
- Add eq_ignore_case() and contains_ignore_case() to avoid to_lower() allocations
- Optimize HTTP method parsing with first-char branching (parse_http_method_fast)
- Optimize Keep-Alive header check to avoid string allocations
- Apply optimizations to all server backends: picoev, usockets, and app.v
Performance improvements:
- Query string parsing: 20-44% faster
- Keep-Alive check: 82-90% faster
- HTTP method parsing: eliminates string comparison overhead
- Response header processing: removes to_lower() allocations
All 20+ test suites pass with no regressions.
|
2025-12-31 18:34:46 +08:00 |
|
meiseayoung
|
69d1385ced
|
perf: 0 middleware ignore copy
|
2025-12-31 17:37:51 +08:00 |
|
meiseayoung
|
07382ab622
|
feat: integration usockets backend
|
2025-12-31 15:44:51 +08:00 |
|
meiseayoung
|
a38aeea614
|
perf: use picoev as default Server for improve response concurrency
|
2025-12-30 17:31:13 +08:00 |
|
meiseayoung
|
645d8c2dda
|
feat: add redirect method
|
2025-12-30 14:25:35 +08:00 |
|
meiseayoung
|
a95485dd25
|
migr: migration json to x.json2
|
2025-12-30 12:40:30 +08:00 |
|
meiseayoung
|
782a4e7795
|
refc: Refactor project structure
|
2025-12-30 11:00:46 +08:00 |
|