www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/25/15:48:50

Date: Fri, 25 Sep 1998 16:52:10 -0300 (EST)
From: "Renato F. Cantao" <cantao AT ime DOT unicamp DOT br>
To: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
cc: djgpp AT delorie DOT com
Subject: Re: Memory allocation!
In-Reply-To: <m0zMdiG-000S4AC@inti.gov.ar>
Message-ID: <Pine.SUN.3.96.980925165045.24651A-100000@athenas.ime.unicamp.br>
MIME-Version: 1.0

Hi SET!

On Fri, 25 Sep 1998, Salvador Eduardo Tropea (SET) wrote:

> "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! ;-)
> 

OK, that's perfect. I'm meaning, does exist any other routine faster than
new or malloc?

		Renato Fernandes CANTAO
		State University at Campinas
		Campinas - Brazil


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019