Discussion on Go and D

Manu turkeyman at gmail.com
Sat Apr 7 08:41:23 PDT 2012


On 7 April 2012 17:03, Jacob Carlborg <doob at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120407/a83511fc/attachment.html>


More information about the Digitalmars-d mailing list