[PATCH] a little optimization of KJS GarbageCollector

Luciano Montanaro mikelima at cirulla.net
Tue Nov 29 14:25:39 GMT 2005


On Tuesday 29 November 2005 14:05, Kazuki Ohta wrote:
> Hi, All.
>
> I've wrote the patch to optimize KJS's garbage collecter a
> little. The loop in the Collector::collect is the crucial
> part in the interpreter, so it's better to reduce pointer
> referencing.
>

Does the patch actually improve performance? I would be surprised to know  
gcc does not do the same transformations itself.

On the other hand, I think the use of the temporaries in this case make the 
program a bit more readable.


> Please review and can I apply this patch?
>
> regards.

-- 
Luciano Montanaro //
              \\ //
               \x/ www.cirulla.net




More information about the kde-core-devel mailing list