This patch speeds up the scroll-down test by and odd second or two for
me. Do others see the same? I guess it cannot do any harm, so
committing.


Index: src/BufferView_pimpl.C
===================================================================
--- src/BufferView_pimpl.C      (revision 14332)
+++ src/BufferView_pimpl.C      (working copy)
@@ -689,12 +689,15 @@

 void BufferView::Pimpl::update(Update::flags flags)
 {
+       // This is close to a hot-path.
+       if (lyxerr.debugging(Debug::DEBUG)) {
        lyxerr[Debug::DEBUG]
                << BOOST_CURRENT_FUNCTION
                << "[fitcursor = " << (flags & Update::FitCursor)
                << ", forceupdate = " << (flags & Update::Force)
                << ", singlepar = " << (flags & Update::SinglePar)
                << "]  buffer: " << buffer_ << endl;
+       }

        // Check needed to survive LyX startup
        if (buffer_) {

-- 
        Lgb

Reply via email to