On Friday 20 July 2007 01:28:50 chromatic wrote:

> We can speed up PGE by 40%, if not more, by removing the great hate that is
> Parrot_get_vtable_index(), which performs a binary search of all of the
> vtable names with a strcmp for each one.  This function gets called every
> time something wonders "Hey, am I about to call a vtable entry?"
>
> That happens a lot.

I should mention that, at least with the one file I profiled, the nasty hacky 
approach that you will never see reduced the amount of time spent in DOD 
sweep by 60%, the amount of time marking pobjects by at least 20%, the time 
spent allocating strings by 85%, the amount of time getting free objects by 
50%, the amount of time getting free buffers by 75%, and the amount of time 
spent comparing strings by over 90%.

The big winner, if we can pull this off, is code that uses PMCs... and I can 
think of a pile of code in our repository that uses PMCs, namely everything.

-- c

Reply via email to