I have just discovered TextMate, and am so far very happy with it, but I think I just hit a glitch...
I am trying to edit a SQL load file that is about 5M, which shouldn't be a problem. However, some of the lines are very long, as a complete website contents is in a single line. I have no idea how many characters are in this line, but I suspect about 2M worth.
Anyway, TextMate hangs while trying to work with this file. I can't do much at all. Even a simple act of scrolling hangs. TextEdit does a reasonably good job with the file though...
Actually, I don't think it is hanging, as it eventually responds (about 30 seconds later), but it is so slow that it is completely unusable. Is this a known problem? For me, it is weird files like this that we need an editor like TextMate to be able to easily handle.
Thanks...
Jim Leask
On 12/11/2005, at 5.33, Jim Leask wrote:
Actually, I don't think it is hanging, as it eventually responds [...]
The problem is with the long lines, which I naively just hand over to the system, to do the text layout/rendering.
If you enable soft wrap, I think you'll find the performance much better (as I then only hand over subsets of the line).
Long term I should do some sort of workaround for this though.
Thanks - that did the trick and the editor is usable again on this file.
I do agree though that a workaround for this would be helpful. I don't usually like to put on any wrapping, as it destroys the formatting of the file which is usually done for very specific reasons. Besides, the appearances of a hang is unnerving...
Jim
On 12-Nov-2005, at 3:45 AM, Allan Odgaard wrote:
On 12/11/2005, at 5.33, Jim Leask wrote:
Actually, I don't think it is hanging, as it eventually responds [...]
The problem is with the long lines, which I naively just hand over to the system, to do the text layout/rendering.
If you enable soft wrap, I think you'll find the performance much better (as I then only hand over subsets of the line).
Long term I should do some sort of workaround for this though.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Soft Wrap doesn't really make things a lot better for me. I'm having the exact same problem as Jim Leask but I actually noticed it when Soft Wrap was already enabled. When I disabled Soft Wrap it got a lot slower. Either way, with Soft Wrap enabled or disabled, with any wrap disabled/enabled for that matter, it's way too slow to not have to switch over to nano to edit the file - which I don't mind doing but it would be great if I didn't have to.
Adam