Re: help fighting with optimizations

2013-05-23 Thread Mans Rullgard
On 23 May 2013 04:09, Michael Hudson-Doyle wrote: > Mans Rullgard writes: > >> If you need to disable CSE for part of the code, you might want to try >> your luck with __attribute__((optimize("no-gcse"))) on the relevant >> functions. >> >>> I'd also be interested if you think this class of optim

Re: help fighting with optimizations

2013-05-22 Thread Michael Hudson-Doyle
Mans Rullgard writes: > On 22 May 2013 05:13, Michael Hudson-Doyle > wrote: >> Hi all, >> >> I've spent a little while porting an optimization from Python 3 to >> Python 2.7 (http://bugs.python.org/issue4753). The idea of the patch is >> to improve performance by dispatching opcodes on compute

Re: help fighting with optimizations

2013-05-22 Thread Mans Rullgard
On 22 May 2013 05:13, Michael Hudson-Doyle wrote: > Hi all, > > I've spent a little while porting an optimization from Python 3 to > Python 2.7 (http://bugs.python.org/issue4753). The idea of the patch is > to improve performance by dispatching opcodes on computed labels rather > than a big switc

help fighting with optimizations

2013-05-21 Thread Michael Hudson-Doyle
Hi all, I've spent a little while porting an optimization from Python 3 to Python 2.7 (http://bugs.python.org/issue4753). The idea of the patch is to improve performance by dispatching opcodes on computed labels rather than a big switch -- and so confusing the branch predictor less. The problem