<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>215200</bug_id>
          
          <creation_ts>2009-11-18 23:44:52 +0000</creation_ts>
          <short_desc>Reformat source tool causes editor to freeze for a moment</short_desc>
          <delta_ts>2010-11-13 17:48:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdevelop</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diederik van der Boor">vdboor</reporter>
          <assigned_to>kdevelop-bugs-null</assigned_to>
          <cc>reavertm</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>864590</commentid>
    <comment_count>0</comment_count>
    <who name="Diederik van der Boor">vdboor</who>
    <bug_when>2009-11-18 23:44:52 +0000</bug_when>
    <thetext>Version:           3.9.96 (beta6) (using KDE 4.3.3)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.5-0.1-desktop
Installed from:    openSUSE RPMs

When pressing the &quot;reformat source&quot; in the menu, the editor freezes for a brief moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864592</commentid>
    <comment_count>1</comment_count>
    <who name="Diederik van der Boor">vdboor</who>
    <bug_when>2009-11-18 23:46:15 +0000</bug_when>
    <thetext>for the record, I actually expected some kind of progress feedback or threading so it doesn&apos;t look like kdevelop is broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864612</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Pakulat">apaku</who>
    <bug_when>2009-11-19 00:04:28 +0000</bug_when>
    <thetext>That doesn&apos;t make any sense. Reformatting formats the file you&apos;re currently working on, so blocking you from any input is quite fine. (Even though its more a side-effect of waiting for the external process to complete)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>869194</commentid>
    <comment_count>3</comment_count>
    <who name="Diederik van der Boor">vdboor</who>
    <bug_when>2009-11-27 00:10:17 +0000</bug_when>
    <thetext>Pardon me, would you consider reopening this?  I fully understand the editor component shouldn&apos;t be updated while running the reformatter. Completely locking up kdevelop for 5 seconds however, makes it look really broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875949</commentid>
    <comment_count>4</comment_count>
    <who name="Andreas Pakulat">apaku</who>
    <bug_when>2009-12-08 09:06:48 +0000</bug_when>
    <thetext>*** Bug 217801 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>876622</commentid>
    <comment_count>5</comment_count>
    <who name="Andreas Pakulat">apaku</who>
    <bug_when>2009-12-09 17:25:02 +0000</bug_when>
    <thetext>Apparently I underestimated what &quot;moment&quot; means, as the duplicate 217801 indicates this is along the lines of multiple seconds when astyle on the cli needs far less time.

I can see that too, kdevsvnplugin.cpp takes around 4-5 seconds here inside KDevelop to reformat with linux style. Whats noticeable is that reverting the change with Ctrl+Z takes about the same amount of time. So this might be a kate-issue... I&apos;ll try this too at home once I&apos;ve finished the formatter-rewrite.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1040668</commentid>
    <comment_count>6</comment_count>
    <who name="Milian Wolff">mail</who>
    <bug_when>2010-11-05 16:07:47 +0000</bug_when>
    <thetext>definitely a kate issue, but it&apos;s only hit in kdevelop due to it&apos;s extensive usage of moving ranges / smart ranges. I&apos;m currently trying to optimize what ever I can find and I think I already achieved a few dozen percents. But it&apos;s still far too slow...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1041097</commentid>
    <comment_count>7</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2010-11-06 19:30:34 +0000</bug_when>
    <thetext>SVN commit 1193672 by cullmann:

mwolff:

    opt: use faster QHash for cache that has a ptr as key
    
    This makes reformat source in KDevelop a bit faster
    
CCBUG: 215200


 M  +1 -1      katetextblock.cpp  
 M  +1 -1      katetextblock.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1193672</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1041099</commentid>
    <comment_count>8</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2010-11-06 19:30:58 +0000</bug_when>
    <thetext>SVN commit 1193674 by cullmann:

mwolff:

    make TextRange::checkValidity faster by not doing and obsolete conversions
    
CCBUG: 215200


 M  +3 -3      katetextrange.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1193674</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1041100</commentid>
    <comment_count>9</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2010-11-06 19:32:40 +0000</bug_when>
    <thetext>SVN commit 1193676 by cullmann:

mwolff:
    provide fast TextCursor::setPosition(const TextCursor&amp; position), esp. for TextRange::checkValidity()
    
CCBUG: 215200


 M  +13 -0     katetextcursor.cpp  
 M  +7 -0      katetextcursor.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1193676</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043989</commentid>
    <comment_count>10</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2010-11-13 17:48:47 +0000</bug_when>
    <thetext>SVN commit 1196613 by cullmann:

merge milians latest performance tweaks
doc.clear() invalidates ranges

BUG: 215200


 M  +60 -62    document/katedocument.cpp  
 M  +43 -6     tests/katedocument_test.cpp  
 M  +72 -2     tests/movingrange_test.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1196613</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>