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
{{ message }}
Repository navigation
Use PyBytesWriter API in PEG parser's _build_concatenated_bytes, avoid quadratic memory allocations #140149
action_helpers.c's _build_concatenated_bytes, which is a part of the PEG parser, is a great candidate for using PyBytesWriter API with its PyBytes_Concat:
This seems to be quadratic time complexity, while using a modern API and just a single copy is possible!
Inspired by gh-140139, I found this while grepping for PyBytes_Concat and PyUnicodeWriter. My hypothesis is that for many there's a missing PyBytesWriter yang.
Activity
gh-140149: Use PyBytesWriter in _build_concatenated_bytes() (#140150)
pythongh-140149: Use PyBytesWriter in _build_concatenated_bytes() (py…