Mail Archives: djgpp/1998/09/25/15:40:22
"Renato F. Cantao" <cantao AT ime DOT unicamp DOT br> asked:
> 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?
Almost, new is a wrapper, so it makes some extra checks.
> 2. Despite the answer, does exist a better (=faster!) way to
> allocate memory?
Yes: do your own custom routine optimized for your allocation scheme! ;-)
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -