is 2 minutes a little slow for Konqi to load?

Harri Porten porten at trolltech.com
Thu Jun 6 16:53:57 BST 2002


On Thu, 6 Jun 2002, ian reinhart geiser wrote:

> 	Gdb has given me hints that the problem may be in QRegExp().  It just sits in 

How do you retrieve this information from gdb ? Have you found an infinite
loop or something ?

> there from what i can tell.  It was called by XMLGuiclient find version 
> number.  I know QRegExp is slow, but now I am thinking this is an endiness 
> problem because someone told me this happens on OS X too, in both X and 
> native Qt.  I am WAY over my head in here so anyone willing to help me please 
> let me know.

Does the attached patch help ?

Harri.

--- qtextstream.cpp     2002/04/26 20:55:41     1.42
+++ qtextstream.cpp     2002/06/06 15:52:13
@@ -1,5 +1,5 @@
@@ -456,10 +456,7 @@ int QStringBuffer::getch()
        setStatus( IO_ReadError );
        return -1;
     }
-    QChar *ch = (QChar*)((ushort*)s->unicode() + ioIndex/2);
-    int retval = (ioIndex&01) ? ch->row() : ch->cell();
-    ioIndex++;
-    return retval;
+    return (int) *( (const char *) s->unicode() + ioIndex++ );
 }
 
 int QStringBuffer::putch( int ch )






More information about the kde-core-devel mailing list