Discussion on Go and D

Jacob Carlborg doob at me.com
Sat Apr 7 07:03:22 PDT 2012


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.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list