[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Could kdecore depend on kjs?
From:       Chusslove Illich <caslav.ilic () gmx ! net>
Date:       2007-03-15 12:46:30
Message-ID: 200703151346.33301.caslav.ilic () gmx ! net
[Download RAW message or body]


> [: Thiago Macieira :]
> The overhead is not negligible. I can tell you that right now.
>
> Each extra library loaded incurs a performance penalty at load-time.

Hm, I'm getting some suspiciously favorable results, is there something 
wrong with doing:

time for i in `seq 1000`; do kde4-config; done

and then measuring and averaging the walltime delta between linked and 
non-linked kjs? ldd reports 37 libs for kde4-config, versus eg. 50 for 
kdialog, so the relative overhead should be more pronounced.

Unless this benchmark is useless, the results are 23.9 ms for non-linked, 
versus 24.5 ms for linked call, a 1.6 ms overhead. That's on a 2 GHz 
AthlonXP, and it predictably went to about 4.1 ms when I downclocked it to 
700 MHz.

-- 
Chusslove Illich (Часлав Илић)

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic