🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.mfc
Article #43

Re: HELP !!! Memory - Allocation

#43
From: Jerry Coffin
Date: Wed, 31 Jan 1996 19:33
24 lines
1504 bytes
grantp@usa.pipeline.com(Pete) wrote:

[ I've trimmed the newsgroups since this seems to have little to do with
compatibility of applications... ] 

>On Jan 28, 1996 01:54:41 in article <Re: HELP !!! Memory - Allocation>,
>'urcrawfo@mcs.drexel.edu (Programmer)' wrote: 
> 
>>It is highly recommended using the "new" operator when using C++. 
>>It is both practical and effifienct. 
>> 
>I agree with the recommendation; however, just to set the 
>record straight :-) 
> 
>On some systems, notably g++ 2.6.3, new performs a few  
>instructions of its own, then calls malloc.  This leads me to 
>conclude that new is less efficient than a direct call to  
>malloc -- although the margin is probably very narrow. 

This depends heavily (perhaps completely) on the situation.  This may be
how g++ 2.6.3 implements global operator new, but the program can
redefine this as needed on either a global basis (rarely reccomended) or
for particular classes.  In the latter case new may be, and often is,
considerably more efficient than malloc.
Technical Details
Message-ID: <4eoc68$5en@natasha.rmii.com>
Path: arc1-ca.pugleaf.net!news.rmii.com!usenet
References: <1996Jan28.015441.7082@mcs.drexel.edu> <4eg4h2$4he@news1.usa.pipeline.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.rmii.com!usenet
From: jcoffin@rmii.com (Jerry Coffin)
Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++
Subject: Re: HELP !!! Memory - Allocation
Date: Wed, 31 Jan 1996 19:33:45 GMT
Organization: TAEUS
Message-ID: <4eoc68$5en@natasha.rmii.com>
References: <1996Jan28.015441.7082@mcs.drexel.edu> <4eg4h2$4he@news1.usa.pipeline.com>
NNTP-Posting-Host: slip22166.rmii.com
X-Newsreader: Forte Free Agent 1.0.82