<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 27 Nov 2016, at 21:35, Bert Zangle wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">The delays seems to be getting more frequent. Doesn't happen outside of TM,<br>
so I don't think it's a system-wide problem.<br>
<br>
My best guess right now is that either it's related to some regexes (as<br>
described above), or it's some other TM performance problem.</p>

</blockquote></div>
<div style="white-space:normal">

<p dir="auto">I doubt it is related to regular expressions in your custom grammar, as these run in a separate thread.</p>

<p dir="auto">It could either be that you have a command running “on document changes” or possibly that you are out of memory and the delays are causing by swapping memory out to disk.</p>

<p dir="auto">When a delay happens you can run <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">sample TextMate 1</code> in a terminal to see what TextMate is doing.</p>

<p dir="auto">You may want to make an alias or bind this to a hotkey, so that you can do it the instant you noticed that TextMate stalls.</p>

<p dir="auto">You can also try to (install and then) run <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">pstree</code> when it is stalling to see if there is any subprocess being run by TextMate.</p>
</div>
</div>
</body>
</html>