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

List:       kde-commits
Subject:    kdelibs/kate/part
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2005-03-30 20:41:50
Message-ID: 20050330204150.64209632 () office ! kde ! org
[Download RAW message or body]

CVS commit by dhaumann: 

Debug time. This gives *very bad* results! kjs is *so slow*. A 130 line script
needs > 100ms. Indentation with scripts will not be possible. :(


  M +3 -0      kateautoindent.cpp   1.57


--- kdelibs/kate/part/kateautoindent.cpp  #1.56:1.57
@@ -2268,4 +2268,6 @@ void KateScriptIndent::processNewline( K
     QString errorMsg;
 
+    QTime t;
+    t.start();
     if( !KateFactory::self()->jscriptManager()->exec( view, "script-indent-c-newline", errorMsg ) )
     {
@@ -2276,4 +2278,5 @@ void KateScriptIndent::processNewline( K
       begin.setPosition( view->cursorLine(), view->cursorColumnReal() );
     }
+    kdDebug(13030) << "ScriptIndent::TIME in ms: " << t.elapsed() << endl;
   }
 }


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

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