Mail Archives: djgpp/1998/09/25/15:30:44
The MALLOC library was written to be extremely fast, not extremely efficient.
It's funny you should ask that - most people ask why memory gets lost, and the
reason is the library was made to be the fastest thing used.
As for NEW, you'd have to test it. I don't know if malloc and new are the same
thing, but I would assume so.
--
"DeHackEd"
My Email address in the header is fake (spammers). Email me at this address:
http://www.geocities.com/cgi-bin/homestead/mail.pl?dehacked
Renato F. Cantao wrote in message ...
>Hi Friends!
>
> I'm working on some mathematics implementations involving large
>amounts of memory allocation. So my questions are:
>
> 1. Operator "new" and "malloc" are speed-equivalent?
> 2. Despite the answer, does exist a better (=faster!) way to
>allocate memory?
>
> Thanks a lot!
>
> Renato Fernandes CANTAO
> State University at Campinas
> Campinas - Brazil
>
>
- Raw text -