JS speed - Konq vs. Mozilla

David Faure david at mandrakesoft.com
Wed Sep 4 19:42:41 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 04 September 2002 19:46, Koos Vriezen wrote:
> Hmmm, now that all free slots are at the end of the block, the 'firstfree'
> value of a block is always the same as 'filled'. So I stripped that out.

Heh - indeed ;)

> There is also no need for a 'memset' call in the CollectorBlock
> constructor and setting '*r = 0L' in the collector anymore (because we
> can iterate from 0 to filled). This also eliminates the need for
> 'if (imp)' in the collector.

Excellent stuff!

> I think this will be my final patch for the Collector for now, because
> there is only 5-7% speed to gain here (compared to a allocator that just
> returns 'malloc(size)').
> Real speed gain should be found elsewhere. A gprof output for the tested
> script, posted earlier in this thread, shows that KJS::Value::~Value() is
> called 299335 and KJS::Value::imp() 356709 times!

Shouldn't those be inlined, simply?

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-rc1 is out. ftp://ftp.kde.org/pub/kde/unstable/koffice-1.2-rc1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9dlQi72KcVAmwbhARAiG0AJ9BXMPbC7T2yglV4INevMis/9F1iACdGKm5
x5JStKZxdJsB/2rZvzeCVkU=
=xIVo
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list