Can somebody explain this memory usage
    Saaa 
    empty at needmail.com
       
    Wed Apr  1 23:08:52 PDT 2009
    
    
  
I forgot to mention it is about a program I made :D
(not the compiler itself or something)
> dmd 1.042 Phobos OpenGl + SDL (Derelict)
>
> mem usage (winxp task manager) = 60MB,  peak = 120MB
> gc.fullCollect is run just before mainloop, no change in mem usage
>
> after 10 minutes or so mem usage has stabilized at 70MB
> I have localized this to toStringz usage and think this is why tango's 
> toStringz has a temp argument.
>
> When I minimize and normalize the window, mem usage goes to 4MB.
>
> I think I don't understand memory (de)allocations.. might be a bad thing 
> :)
>
> 
    
    
More information about the Digitalmars-d-learn
mailing list