[issue34151] use malloc() for better performance of some list operations

2018-08-11 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue34151] use malloc() for better performance of some list operations

2018-08-11 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 2fc46979b8c802675ca7fd51c6f2108a305001c8 by Xiang Zhang (Sergey Fedoseev) in branch 'master': bpo-34151: Improve performance of some list operations (GH-8332) https://github.com/python/cpython/commit/2fc46979b8c802675ca7fd51c6f2108a305001c8 -

[issue34151] use malloc() for better performance of some list operations

2018-07-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34151] use malloc() for better performance of some list operations

2018-07-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 This looks like a reasonable improvement. -- nosy: +rhettinger ___ Python tracker ___ ___ P

[issue34151] use malloc() for better performance of some list operations

2018-07-18 Thread Stefan Behnel
Stefan Behnel added the comment: Nice! Patch looks good to me, minus the usual naming nit-pick. -- nosy: +scoder versions: +Python 3.8 ___ Python tracker ___ _

[issue34151] use malloc() for better performance of some list operations

2018-07-18 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +7869 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue34151] use malloc() for better performance of some list operations

2018-07-18 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : Currently list concatenation, slicing and repeating operations are using PyList_New() which allocates memory for the items by calloc(). malloc() could be used instead, since the allocated memory is overwritten by mentioned operations. I made benchmarks w