🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8600

Re: malloc: where is the catch?

#8600
From: Azazello
Date: Thu, 07 Oct 2004 15:45
23 lines
2046 bytes
Thanks Ed and Allan.

> Question: could you please wrap your lines. Thanks.

Answer: I used HTML version of newgroups when posted it. It appeared to be 
wrapped when I typed it, but... Sorry about that. I use Outlook now, hope it 
fixes the problem.

Answers generate more questions ;).
1. I didn't know that C RTL memory manager allocates significant amount of 
memory when application loads. Tracing malloc call I didn't see any calls to 
VirtualAlloc/HeapAlloc. It seems it does not use WinAPI calls alltogether. 
How much is allocated initially, by the way?
2. How big is C RTL heap ( Project->Options->Linker tab tells me process 
default heap sizes, not C RTL heap sizes, right?) ?
3. Is it possible to get rid of C RTL heap/memory manager alltogether? I 
assume if I don't use any allocations in C RTL heap it's still there.
4. Still, why serialized/growable heap is faster than 
non-seriralized/non-growable? In principle, there is overhead for 
serializations and fixed size heap I would expect to be faster, since no 
need to commit more pages.

Azazello. 
Technical Details
Message-ID: <41656450$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4165469c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,50f14b41a5262fc0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Azazello" <snimi_potniki@hotmail.com>
From: "Azazello" <snimi_potniki@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4165469c$1@newsgroups.borland.com>
Subject: Re: malloc: where is the catch?
Date: Thu, 7 Oct 2004 08:45:34 -0700
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 142.58.249.61
Message-ID: <41656450$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097163856 142.58.249.61 (7 Oct 2004 08:44:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail