Meir Kriheli wrote:
On Wednesday 23 October 2002 20:35, Diego Iastrubni wrote:

ביום שלישי 22 אוקטובר 2002, 02:08, Meir Kriheli כתב:

Something gone wrong here. kde 3.X should load faster than 2.2.2 (and it
does here).

This times are closer to the Gentoo I run on a machine at the office
(celleron 400 + 256MB) running kde 3.0.4, not to the hardware you
describe.

Konqy (3.1 from cvs) on my home machine (P3 866 512MB) starts in 1sec.

I doubt that you'll see much improvement going from i585 to i686 in
compile flags. For kde's performance (and other C++ code) it is advised
to use binutils which enables -combreloc by default, and use gcc3 for the
compile.
-combreloc ? that's new to me? can you give me an fmtr?

It replaces the old (non standart) method of objprelinking used in previous generations of KDE with a standart one integrated with binutils (ld). glibc 2.3 should include better support for it as well IIRC. It should mostly affect startup times.

This is from the intro part of the old LFS hint about combreloc (see http://hints.linuxfromscratch.org/hints/old/combreloc.txt ).

<quote>
Introduction

Recent versions of binutils (actually its ld) include a new option that
reaps the same loading improvements as objprelink of KDE fame, but for
all programs compiled by it. As a general rule you can expect around 20%
to 30% faster loading times. I personally have had no problems compiling
*EVERYTHING* on my system with it (including gcc, glibc, etc).
</quote>

I apply other optimization as well to my system including -fomit-frame-pointer -funroll-loops -falign-functions=4 etc. Note that this will result in larger binaries/libs.
Hi all :)
I see everything is mixed up here, lets get things right.
Combreloc, objprelink and prelink are mathods of speeding up the startup time of preogrems by speeding up the relocations.
Comberloc support was added to binutils from version 2.12.somthing but was disabled by default so it was needed to preform the LFS "trick" to enable it (or hack the source of binutils), from version 2.13.somthing Comberloc is enabled by default so everything is already compiled with it on.
to check if you have Combreloc enabled do: LD_DEBUG=statistics cat
if you will get the following line : number of relocations from cache : foo
Combreloc is on.
now to objprelink, objprelink is a hack to fix the slow startup times and it dowsnt work very well...
prelink is the "good" way to speed up startup times, ELF prelink support was added to glibc 2.3.1
I know RH8 has some experimental prelink tool...




=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to