Mail Archives: djgpp-workers/1997/11/10/15:34:08
> > pathalogical data initialization codes to see how they perform in
> What are these, please?
There were some examples discussed on the NG/Mailing list about a month
back, in which the initialization of an array with a large number of
elements consumed a huge amount of memory. I would suggest checking the
mailing list archives - I don't remember the details.
> I am doing various experiments with instrumenting source code to get
> statistics on memory usage. I have found that calling
> _go32_dpmi_remaining_physical_memory() frequently (like after every
> malloc() call) slows things way down, to the extent that I have to
> run experiments twice, once with the call to measure memory usage
> and once without to get a more meaningful speed comparison.
>
> Is there a faster way of getting the required info?
Running it twice is probably the best thing to do.
- Raw text -