From 18f5d0ea9528d57b961694ae2f22e582b34dc4d4 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Wed, 25 Mar 2026 09:42:07 +0100 Subject: [PATCH] Fix 25.2.0 changelog: correct ASGI parser optimization description Remove inaccurate BytesIO claims - the callback parser uses bytearray directly. --- docs/content/news.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/content/news.md b/docs/content/news.md index d9d7bca3..7aeb1448 100644 --- a/docs/content/news.md +++ b/docs/content/news.md @@ -27,8 +27,7 @@ ### Performance - **ASGI HTTP Parser Optimizations**: Improve ASGI worker HTTP parsing performance - - Read chunks in 64-byte blocks instead of 1 byte at a time for chunk size lines and trailers - - Reuse BytesIO buffers with truncate/seek instead of creating new objects (reduces GC pressure) + - Callback-based parsing with direct `bytearray` buffer operations - Use `bytearray.find()` directly instead of converting to bytes first - Use index-based iteration for header parsing instead of `list.pop(0)` (O(1) vs O(n))