[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-02-22 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: I've just posted the results to an OpenStack Swift benchmark run using the patch from my proposition, issue #26382. Victor's patch, applied to CPython 2.7, adds an extra 1% compared to mine (which improved throughput by 1%), effectively doubling

[issue26382] List object memory allocator

2016-02-22 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Our Haswell-EP OpenStack Swift setup shows a 1% improvement in throughput rate using CPython 2.7 (5715a6d9ff12) with this patch. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-02-22 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Hi all, Please find below the results from a complete GUPB run on a patched CPython 3.6. In average, an improvement of about 2.1% can be observed. I'm also attaching an implementation of the patch for CPython 2.7 and its benchmark results. On GUPB

[issue26382] List object memory allocator

2016-02-19 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Theoretically, an object type that consistently allocates more than the small object threshold would perform a bit slower because it would first jump to the small object allocator, do the size comparison and then jump to malloc. There would be a small

[issue26382] List object memory allocator

2016-02-19 Thread Catalin Gabriel Manciu
Catalin Gabriel Manciu added the comment: Hi Victor, This patch follows the same idea as your proposal, but it's focused on a single object type. I think doing this incrementally is the safer approach, allowing us to have finer control over the new areas where we enable allocating using

[issue26382] List object memory allocator

2016-02-18 Thread Catalin Gabriel Manciu
Changes by Catalin Gabriel Manciu <catalin.gabriel.man...@intel.com>: Added file: http://bugs.python.org/file41954/listobject_CPython2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26382] List object memory allocator

2016-02-18 Thread Catalin Gabriel Manciu
New submission from Catalin Gabriel Manciu: Hi All, This is Catalin from the Server Scripting Languages Optimization Team at Intel Corporation. I would like to submit a patch that replaces the 'malloc' allocator used by the list object (Objects/listobject.c) with the small object allocator