Message237360
Oh, test_io and test_sqlite are failing in release mode with check_result-4.patch. io and sqlite modules only call PyErr_Clear() in debug mode. It's my fault, I added them, but I made them conditionnal to not impact performances. It's now fixed in the new patch.
Patch 5:
- "./python -m test -j0 -rW" succeeded in debug mode
- "./python -m test -j0 -rW" succeeded in release mode
- pybench: overall 0.6% slower with the patch (on the minimum runtime column)
Micro-benchmarks of issue #23507:
$ ./python -m timeit -s "f = lambda x: x" -s "s = list(range(1000))" -- "list(filter(f, s))"
Unpatched: 10000 loops, best of 3: 96.3 usec per loop
Patched: 10000 loops, best of 3: 99.2 usec per loop (+3.0%)
$ ./python -m timeit -s "f = lambda x: x" -s "s = list(range(1000))" -- "list(map(f, s))"
Unpatched: 10000 loops, best of 3: 89 usec per loop
Patched: 10000 loops, best of 3: 92.3 usec per loop (+3.7%)
$ ./python -m timeit -s "f = lambda x: x" -s "s = list(range(1000))" -- "sorted(s, key=f)"
Unpatched: 10000 loops, best of 3: 104 usec per loop
Patched: 10000 loops, best of 3: 106 usec per loop (+1.9%) |
|
Date |
User |
Action |
Args |
2015-03-06 14:53:11 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka |
2015-03-06 14:53:11 | vstinner | set | messageid: <1425653591.26.0.656481418255.issue23571@psf.upfronthosting.co.za> |
2015-03-06 14:53:11 | vstinner | link | issue23571 messages |
2015-03-06 14:53:11 | vstinner | create | |
|