[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-dev
Subject:    Re: [pypy-dev] Bytecode counting patch
From:       Eric van Riet Paap <eric () vanrietpaap ! nl>
Date:       2006-08-07 16:35:17
Message-ID: 9EBBE66F-EFF0-4290-943C-7AA4AFE87F70 () vanrietpaap ! nl
[Download RAW message or body]

Hi Ben,

It's nice to know what opcodes are popular! However, sorting them in  
whatever order within a switch will likely not make a difference.
This switch will be converted to a jumptable, so the compiler will  
order the cases again.

cheers
Eric


On Aug 7, 2006, at 4:35 PM, Ben.Young@risk.sungard.com wrote:

> Hi PyPys!
>
> Here's a patch that counts the number of times the different  
> bytecodes are
> used. I haven't tried doing translation yet as I can't use the work
> machine cycles, but it can't be far off. I've put the counts on the  
> object
> space as this is accessable from most places.
>
> I've also implemented something that should resort the opcodes in the
> switch statement of the bytecode dispatcher according to the  
> statistics I
> found. This may have a slight speed improvement.
>
>
>
> Cheers,
> Ben
> <diff.txt>
> _______________________________________________
> pypy-dev@codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic