<div dir="ltr">Makes sense, although I can't speak to how the implementation could change to accommodate this, I think as a usability issue perhaps a workaround is to detect when there is super long line in the file, and if so and user has soft wrap turned on, prompt user to disable that for this particular file. This is especially a good thing to do with state restoration, because once user accidentally opens such a file, TM will keep trying to open it on subsequent launch.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 7, 2013 at 5:44 PM, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 8 Dec 2013, at 3:30, Walter Lee Davis wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
FWIW, I believe this happens because of the regular expression scanning going on to effect syntax highlighting. If you can set this particular file type to .txt or another non-highlighted format first, you may find that opening it goes faster.<br>
</blockquote>
<br></div>
I believe the main issue is text layout. This is pretty expensive and it’s hard to break up a single line partly due to unicode rules partly because we need the width of the full line (which requires the full line to go through layout).<br>
<br>
Enabling soft wrap should improve performance significantly since here we do break up the line (on spaces) and only the stuff that is visible will actually go through layout, so smaller chunks are given to CoreText.<br>
<br>
It’s a known issue, but how to fix it is challenging, as effectively we need to pass less to CoreText, and to do that properly we need to partially replicate unicode rules in TextMate (instead of leaving that to the system) and also need to estimate glyph widths to have some estimates to use before we get real values from CoreText.<div class="HOEnZb">
<div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/<u></u>listinfo/textmate</a></div></div></blockquote></div><br></div>