Message78362
On 2008-12-26 22:09, Antoine Pitrou wrote:
> This patch implements what is usually called "threaded code" for the
> ceval loop on compilers which support it (only gcc). The idea is that
> there is a separate opcode dispatch epilog at the end of each opcode,
> which allows the CPU to make much better use of its branch prediction
> capabilities. The net result is a 15-20% average speedup on pybench and
> pystone, with higher speedups on very tight loops (see below for the
> full pybench result chart).
Now I know why you want opcode stats in pybench :-)
This looks like a promising approach. Is is possible to backport
this change to Python 2.x as well ? |
|
Date |
User |
Action |
Args |
2008-12-27 13:21:08 | lemburg | set | recipients:
+ lemburg, arigo, pitrou |
2008-12-27 13:21:07 | lemburg | link | issue4753 messages |
2008-12-27 13:21:06 | lemburg | create | |
|