Discussion on Go and D
Jacob Carlborg
doob at me.com
Sat Apr 7 09:59:27 PDT 2012
On 2012-04-07 17:41, Manu wrote:
> On 7 April 2012 17:03, Jacob Carlborg <doob at me.com <mailto: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.
It depends. I can do quite a lot of coding without typing. But yeah, I
type a lot. It would basically turn on and off the GC, probably not good.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list