<div class="gmail_quote">On 7 April 2012 17:03, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com">doob@me.com</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 2012-04-06 19:37, Rainer Schuetze wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
GC issues like this are currently blocking development of Visual D (a<br>
Win32 project): when just adding spaces to a file, parsing the new file<br>
every other second often needs 10 or more parsings until an equal amount<br>
of memory is collected compared to the allocated memory. AFAICT Visual D<br>
just keeps a reference to the root of the most recent AST of a source file.<br>
<br>
What's even worse: when the allocated memory gets larger (say > 200MB),<br>
the garbage collection itself takes more than a second stalling the<br>
application, which is a real pain if it happens while you are typing<br>
source text (it does happen quite often).<br>
</blockquote>
<br></div>
Can you pause the GC when the user is typing? When you're finished with the processing you can start it again.</blockquote><div><br></div><div>There's a bit of a problem there though, when you're coding, when are you NOT typing? :)</div>
<div>I don't ever stop and sit there patiently for a few seconds for no reason.</div></div>