[issue46993] Speed up bytearray creation from list and tuple

2022-03-15 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue46993] Speed up bytearray creation from list and tuple

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 6dfe09fc5fd5a3ddc6009d5656e635eae30c5240 by Kumar Aditya in branch 'main': bpo-46993: Speed up bytearray creation from list and tuple (GH-31834) https://github.com/python/cpython/commit/6dfe09fc5fd5a3ddc6009d5656e635eae30c5240 -- nosy:

[issue46993] Speed up bytearray creation from list and tuple

2022-03-12 Thread Kumar Aditya
New submission from Kumar Aditya : The attached PR speeds up bytearray creation from list and tuple. Benchmark (uses pyperf): - import pyperf runner = pyperf.Runner() runner.timeit(name="bench bytearray", stmt="bytearray([42]*10