Message273612
> Tuples use a freelist ;-)
Honestly, I didn't expect that my "fast call" thing would give any significant speedup. I know that tuple allocator uses a free list.
Fast calls allows to avoid INCREF/DECREF on each argument, can use the C stack for short memory allocations and C arrays are not tracked by the garbage collector. It looks like all these minor things altogether provides a concrete and significant speedup on benchmarks.
So, I pushed call_prepend.patch with two changes:
* Fix a typo in the function name :-D
* Fix a reference leak in slot_tp_new() ;-) |
|
Date |
User |
Action |
Args |
2016-08-24 23:19:06 | vstinner | set | recipients:
+ vstinner, pitrou, scoder, python-dev, serhiy.storchaka |
2016-08-24 23:19:06 | vstinner | set | messageid: <1472080746.36.0.501011008803.issue27841@psf.upfronthosting.co.za> |
2016-08-24 23:19:06 | vstinner | link | issue27841 messages |
2016-08-24 23:19:06 | vstinner | create | |
|