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

List:       kde-core-devel
Subject:    Re: 'lightweight' QDir::isAbsolutePath replacement ?
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2008-03-06 18:16:04
Message-ID: 200803061116.04200.aseigo () kde ! org
[Download RAW message or body]


On Thursday 06 March 2008, Ralf Habacker wrote:
> The only static method Qt provides to handle this platform independent
> is QDir::isAbsolutePath(). Unfortunally this method seems to be very
> time expensive because it creates a temporary QDir instance.

just to support this point, when doing some profiling and optimization for 
icon loading leading up to 4.0, this was at the very top of the profile in 
the KIconLoader! just changing that to a "by hand" check knocked off a huge 
chunk of the execution time (i forget the exact #s, i blogged about it 
though; by the end it was something like a 5x speed up over all, though, and 
this was a big part of that)

so if we could have something light weight in kdelibs that would be great.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech

["signature.asc" (application/pgp-signature)]

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

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