Hi all,
I'm having problems with big files. TextMate, for me, is practically unuseable for many applications, and I'm not sure wether something is wrong, or I'm just witnessing limitations of the app itself.
TextMate takes upwards of 3 minutes to paste moderately long pieces of text (30-70 KB) without line breaks. I use TextMate to edit Wikipedia entries, which are sometimes badly formated. Thirty thousand characters and not a newline in sight. When I copy texts like that and try to paste them into TextMate, it practically dies. Three times out of five, it won't recover. If it comes back, it's unbearably slow and practically unuseable. Am I doing something wrong, or is this a known issue? I am on a G4 1,25GHz with 1 GB of RAM.
Firefox's textfields can handle pasting and editing of 1MB snippets (I tried) without a hitch, EVEN in those JavaScript rich editor abominations, which probably aren't the most optimized pieces of code ever to parse text. And that's with all the other crap going on, like 10 tabs open and several exensions installed.
What's going on?
Michael Ströck
On 7/3/2006, at 0:14, Michael Ströck wrote:
[...] What's going on?
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.
Enabling soft wrap (View menu) solves the ATSUI issue.
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.
-john