Re: Large memory allocations

2008-11-15 Thread Kagamin
bearophile Wrote: > So can't I can't use all my RAM from my D code? And do you know why? > because you use different implementations of malloc. Aggressive allocation make windows sluggish so it's a good idea to stop allocations before os becomes unresponsive.

Re: Large memory allocations

2008-11-15 Thread bearophile
Kagamin: > because you use different implementations of malloc. But as you have noticed there's a large difference. >Aggressive allocation make windows sluggish so it's a good idea to stop >allocations before os becomes unresponsive.< So the allocator used by D may be better... Thank you for

Re: Large memory allocations

2008-11-15 Thread Denis Koroskin
15.11.08 в 00:56 bearophile в своём письме писал(а): While allocating lot of memory for a little memory-hungry program, I have found results that I don't understand. So I have written the following test programs. Maybe someone can give me some information on the matter. I am using a default

Re: Large memory allocations

2008-11-15 Thread BCS
Reply to bearophile, While allocating lot of memory for a little memory-hungry program, I have found results that I don't understand. So I have written the following test programs. Maybe someone can give me some information on the matter. I am using a default install of a 32 bit Win XP with 2 G

Re: Large memory allocations

2008-11-15 Thread Janderson
bearophile wrote: While allocating lot of memory for a little memory-hungry program, I have found results that I don't understand. So I have written the following test programs. Maybe someone can give me some information on the matter. I am using a default install of a 32 bit Win XP with 2 GB R

Re: Large memory allocations

2008-11-15 Thread Kagamin
bearophile Wrote: > So the allocator used by D may be better... > who knows...

struct requiring this access for template?

2008-11-15 Thread mgen
I encountered an odd error while using template, it reduced to this... and I was wondering whats going on. //Regex.d(20): Error: need 'this' to access member x module templating; import tango.io.Stdout; public class TemplatedClass { const char[] pattern; public this(char[] patt

Re: Large memory allocations

2008-11-15 Thread bearophile
BCS: > IIRC without special work, 32bit windows apps can't use more than 2GB of > total address space regardless of how much ram you have. If you notice the numbers I have shown relative to D (single allocation or many smaller blocks) aren't much close to the 2 GB limit (I haven't tried to raise