[TxMt] Extremely slow pasting of text

John Fieber jfieber at slis.indiana.edu
Tue Mar 7 16:19:43 UTC 2006

On Mar 7, 2006, at 1:52 AM, Allan Odgaard wrote:

> The problem is with the lack of newlines. It is a know issue and  
> primarily has to do with handing over the entire line to ATSUI for  
> rendering and text metrics, but there are also other issues, like  
> using line endings as safe points for parsing of text for syntax  
> highlight, meaning each change require the entire line (70-80KB) to  
> be reparsed, and while that happens, edits to the line will stall  
> the main thread.

Open a file with a long enough line and TextMate will reliably  
crash.  I haven't determined if there is any particular boundary  
under which it is safe, but a one-line file on the far side of 2MB  
will certainly cause a crash for me.


More information about the textmate mailing list