[Vm-dev] change to struct foo {} fum declaration

Igor Stasenko siguctua at gmail.com
Thu Dec 2 23:12:20 UTC 2010


On 2 December 2010 23:30, Esteban Lorenzano <estebanlm at gmail.com> wrote:
>
> Hi,
> As part of my new role, I'm still trying to compile and understand all the building process... and testing with a 5.x produced I found that the tiny benchmarks for my vm and for the 5.x series was significantly worse than it's predecessors (4.x). The difference is significative (32 million send in 5.x/44 million send in 4.x). Trying several optimizations with John, he found that changing the declaration:
>
> struct foo { ... } fum;
>
> to
>
> static struct foo { ... } fum;
>
> speeds the execution, up to 48 million send,  which is very reasonable.
>
> So, I want to change the default definition of fum variable (to "static struct foo").
> What do you think?
>
+1
it could change depending on compiler.. some could compile 'static' to
be more slower than auto.
and that's what we should live with.

> Cheers,
> Esteban
>
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list