Abdelrazak Younes wrote:
Richard Heck wrote:
First, the slowness is coming during the update of the standard toolbar, in particular, during the update of the PASTE button, and more precisely during the getStatus() call, and yet more precisely, during the theClipboard().empty() check. So I did this:
bool GuiClipboard::empty() const
{
   // We need to check both the plaintext and the LyX version of the
   // clipboard. The plaintext version is empty if the LyX version
   // contains only one inset, and the LyX version is empry if the
   // clipboard does not come from LyX.
   QTime t = QTime::currentTime();
   bool b = !qApp->clipboard()->text(QClipboard::Clipboard).isEmpty();
   lyxerr << "Checking emptiness took " << t.restart() << std::endl;
   if (b)
       return false;
   return !hasLyXContents();
}
and I'm getting times on the order of 125ms just for that one call.
Should be easy to solve.
Can you fix this, Abdel? Unfortunately, I do not have time now, as I'd have to learn a lot about this code before I'd know what to do, and I have a lecture to give next weekend at a big conference. It would be really, really nice if a fix could be included in 1.5.2. I have been thinking I need to go back to using 1.4.5.1 myself, this gets so bad. I mean, a limit of six characters a second can make things really, really slow.

Richard

--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to