You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performance optimizations for the HTTP request hot path:
- LRU route cache (256 entries) for regex endpoint matching
- Separate regex endpoint map to avoid scanning all endpoints
- Replace istringstream with manual find() loop in string_split
- Replace sscanf with direct hex arithmetic in http_unescape
- Cache path_pieces in http_request to avoid repeated tokenization
- Flatten unique_ptr<string> to plain string in modded_request
- Case-sensitive strcmp for HTTP methods per RFC 7230
- Standardize_url optimization with std::unique and pop_back
0 commit comments