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

List:       kde-devel
Subject:    Re: kdeaddons/kfile-plugins/txt
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-05-26 12:44:23
[Download RAW message or body]

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

On Monday 26 May 2003 13:42, Carsten Pfeiffer wrote:
> On Monday 26 May 2003 13:10, you wrote:
> > It pretty much locks up on a 23Mb log file, I don't think that's
> > acceptable under any condition. It's magnitudes slower than wc.
>
> Then maybe it shouldn't use
>   totWords += (QStringList::split(QRegExp("\\s+"), line)).count();
>
> to detect the number of words in a line:}

If it cares about performance it should probably not use QString at all, but 
just process the file as char's. Would make a nice little task for someone 
that wants to get his hands dirty with some programming.

Summary:
Make KTxtPlugin::readInfo() in kdeaddons/kfile-plugins/txt/kfile_txt.cpp 
faster, see the source of "wc" for guidance.

Cheers,
WC Bastian ;-)
- -- 
bastian@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+0gwnN4pvrENfboIRAhB7AJ4vv+CREt/vTbOfhX6oNQ1/D+i7iQCeK08l
QhWJdhCLPqdxUXQap9LwG1c=
=sMsu
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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