[TxMt] Re: TM freezes for 10+ minutes on a file with Soft Wrap + Regexp slowness
Allan Odgaard
mailinglist at textmate.org
Wed May 20 09:43:27 UTC 2009
On 8 May 2009, at 06:52, David Ross wrote:
> When you have a file that has only one line break (say a minimized
> css or js
> file) and if you have Soft Wrap enabled, TM will freeze for 10
> minutes at a
> time! Totally weird. Even a TextEdit works perfectly with something
> like
> that.
TextMate is line-oriented, and it gives the entire line to the spell
checker, the parser, the text layouter/renderer, etc. Especially the
last part is _really_ slow with extremely long lines. It’s a known
problem.
> Another issue is slow regexp. Whenever I execute regexp on a file
> that's
> about 5K lines, TM freezes for 20+ seconds. I've never seen such a
> slow
> regexp. Am I doing something wrong or is there a preference/switch
> that I
> could set so it doesn't do that?
There is no turbo button, no. What regexp are you using for the
search? Regexps have varied running time.
More information about the textmate
mailing list