JS speed - Konq vs. Mozilla

David Faure david at mandrakesoft.com
Sun Sep 8 09:26:23 BST 2002


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

On Saturday 07 September 2002 14:19, Koos Vriezen wrote:
> On Wed, 4 Sep 2002, Koos Vriezen wrote:
> 
> > On Wed, 4 Sep 2002, David Faure wrote:
> >
> > > > > > 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?
> > > >
> > > > Would it not break BC (value.h is installed)?
> > >
> > > No. Old code would still call the method, new code would benefit from being
> > > able to copy its contents. AFAIK this is no problem.
> >
> > Can't see any speed gain with inlining KJS::Value::imp(),
> > KJS::Value::type(), KJS::Value::isNull() and
> > KJS::Value::Value(const Value&).
> 
> However I do see a speed increase when compiling with -finline. KJS
> becomes 10% faster with it. Inlining the above, it even becomes faster.

Do you usually compile it with -O2 ?

- -- 
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)

iD8DBQE9ewmw72KcVAmwbhARAqGOAJ9Wtx2+x0/EBVYXv/D2v9K1k2+eVACeNeJ7
ZEQ2ObMg+BtHk4dMyrcwSdw=
=RZS6
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list