From: Robert S. <Rob...@ka...> - 2021-01-16 12:53:08
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix"><font face="monospace">Hi,</font></div> <div class="moz-cite-prefix"><font face="monospace">mainly there are two permanent background tasks: structure browsing in sidekick and </font><font face="monospace"><font face="monospace">syntax highlighting. Both depend on edit mode. You could quickly check if they're slowing down jedit by changing the edit mode to "text" (means: no highlighting, no strucure) by ohne of them:<br> </font></font></div> <div class="moz-cite-prefix"><font face="monospace"><font face="monospace"> <br> </font></font></div> <div class="moz-cite-prefix"><font face="monospace"><font face="monospace">a) Utilities -> Buffer Options -> Edit Mode (</font></font><font face="monospace"><font face="monospace"><font face="monospace"><font face="monospace">only until next buffer load)</font></font></font></font></div> <div class="moz-cite-prefix"><font face="monospace"><font face="monospace">b) permanent: place ":mode=text:" in one of the first or last 10 lines of the buffer<br> </font></font></div> <div class="moz-cite-prefix"><font face="monospace"><br> </font></div> <div class="moz-cite-prefix"><font face="monospace">Robert</font></div> <div class="moz-cite-prefix"><font face="monospace"><br> </font></div> <div class="moz-cite-prefix"><font face="monospace"><br> </font></div> <div class="moz-cite-prefix"><font face="monospace">Am 16.01.2021 um 06:43 schrieb Edward Diener:<br> </font></div> <blockquote type="cite" cite="mid:rttude$mgs$1...@ci..."><font face="monospace">JEdit sometimes slows to a crawl when editing certain complicated C++ files. By complicated I mean a C++ file which shows advanced C++ syntax features and which also may have temporarily incorrect C++ syntax as I work through some programming problem. By slowing to a crawl I mean that moving my cursor around in the file or placing my cursor somewhere in the file or scrolling through the file, is sometimes extremely slow, without JEdit taking a number of seconds, sometimes 5 or more, before I can continue editing. <br> </font> <font face="monospace"><br> I believe this is happening because JEdit is trying in the background to parse the C++ constructs in the file, most probably because JEdit needs to understand the constructs in the file in order to do its syntax highlighting. <br> </font> <font face="monospace"><br> I would like to defeat this occasional slowness somehow and the thought that I have is to do whatever is necessary to stop JEdit from parsing the C++ syntax elements in the file. <br> </font> <font face="monospace"><br> Is Jedit parsing the C++ files in the background in order to understand its constructs ? <br> </font> <font face="monospace"><br> Is Jedit trying to understand the constructs in order to provide syntax highlighting ? <br> </font> <font face="monospace"><br> Is there a way to completely turn off syntax highlighting for a buffer ? Or for a file's edit mode ? <br> </font> <font face="monospace"><br> Will turning off syntax highlighting ( I hope that is possible ) prevent JEdit from trying to parse the C++ constructs in the file ? <br> </font> <font face="monospace"><br> The slowdown of course can be the result of some Plugin I have, but I do not see that any of my Plugins needs to parse the file for C++ constructs for any reason. <br> </font> <font face="monospace"><br> </font> <font face="monospace"><br> </font> <font face="monospace"><br> </font> </blockquote> <font face="monospace"><br> </font> </body> </html> |