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

List:       kde-devel
Subject:    Re: QString or QCString for file names?
From:       Waldo Bastian <bastian () ens ! ascom ! ch>
Date:       1999-06-23 9:28:27
[Download RAW message or body]

Pietro Iglio wrote:
> 
> On 6/22/99, 10:57:56 AM, Waldo Bastian <bastian@ens.ascom.ch> wrote
> regarding Re: QString or QCString for file names?:
> 
> > Pietro Iglio wrote:
> > >
> > > It is my understanding that any string that can be displayed must be
> > > of type QString. My question is: can I use QCString for file names
> > > and paths?
> 
> > Yes, but why would you?
> 
> I'm trying to optimize kpanel resource requirements (memory/cpu
> usage). There are many string operations on file names
> (concatenation, substring, etc),
> that are performed on QStrings. I was wondering if we can gain
> something replacing QStrings with QCStrings wherever it is 
> possible.

Memory optimization and CPU optimization are two seperate things.

With respect to memory:
How does kpanel store filenames? How many filenames does it
store?

With respect to CPU:
Profile your code to see where the problems are. Guessing about
performance problems is plain stupid. (Though very populair)

Cheers,
Waldo
-- 
*** *** *** Hi! I'm a .signature virus! *** *** ***
Copy me into your .signature file to help me spread!

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

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