aio-libs / aio-libs/aiohttp

Replace deque in StreamReader with bytearray

Open
#2,971 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
16.5k
Forks
2.4k
Avg merge
17h 22m
Merged PRs (30d)
212

Description

`bytearray` is highly optimized for appending to the right and removing from the left.
On resizing it keeps up to 50% free space at the begin of buffer before performing a memory reallocation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.