bearophile Wrote:

> Robert Fraser:
> > I agree it's a bug, and probably a rather major one. However in a real 
> > use case, any program that needs 1800+ MB arrays should be 64-bit only.
> 
> In that program there's essentially just that large array.
> What is the size of biggest array you suggest to use in a D/C program on a 32 
> bit OS running on a 2 GB RAM PC?
> 
> Bye,
> bearophile

I don't think there's any ideal value for a max allocation size, I can't even 
think of an use for such large arrays.

There is always a way to split the allocation in smaller ones which will be 
easy to map in the available virtual memory space.

If its a single stream, loading it all in memory at once is overkill, it would 
be more efficient to create a specialized range to load something like 0x1000 
bytes at once (aligned to the same boundary) and operate on this slice.

Reply via email to