[Bug 74893] Re: "Highlight matching bracket" option doesn't highlight brackets with more than 2000 characters between them

Richard Gobeille terminx at gmail.com
Sat Dec 9 19:18:32 UTC 2006


Yeah, I have a /lot/ of code blocks that go over that number.  For
instance, the block of code that I first noticed this issue with is only
about 70 lines long, but it still manages to hit the 2000 character
limit.  70 lines with an average of ~30 characters per line really isn't
much, especially when ~50 of those lines are visible in the editor at
once.

I took a look at the upstream bug you filed, and its response, and I
would be interested to know what kind of performance problems were
encountered before the limit was instituted (and why this was seen as
the best solution).  I just experimented a bit myself and found that
gedit's performance remained adequate (to me), even with the limit you
mentioned having been increased to 65536.  However, I did perceive what
seemed like a slight amount of "hitching" when rapidly moving between
many lines with brackets which needed matching.  It seems like this
could potentially be alleviated by waiting for the user to let up on the
cursor keys before figuring out which bracket matches what is at the
cursor position.

What are your thoughts?

-- 
"Highlight matching bracket" option doesn't highlight brackets with more than 2000 characters between them
https://launchpad.net/bugs/74893




More information about the desktop-bugs mailing list