Large memory allocations

BCS ao at pathlink.com
Sun Nov 16 14:32:28 PST 2008


Reply to 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 the limit to 3 GB yet).
> 
> Bye,
> bearophile

your within 10-25% of that limit, I'd say that's close enough to make a difference 
depending on what kind of overhead your looking at. For example, D might 
be reserving address space for every dll it /might/ have to load while the 
C program might be waiting to reserve that until it actually needs to load 
them.




More information about the Digitalmars-d-learn mailing list