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