Message-ID: <37E0B563.67698DE8@accord-soft.com> Date: Thu, 16 Sep 1999 14:46:20 +0530 From: "Sunil V." Organization: Accord Software & Systems Pvt. Ltd. X-Mailer: Mozilla 4.6 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: djgpp Subject: Why malloc() and free() take so much time ? Content-Type: multipart/mixed; boundary="------------6BA90FC783E18B9E6832DC28" Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. --------------6BA90FC783E18B9E6832DC28 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello Everybody, A piece of my code looks as follows: AllocateHugeBlock() ----- ----- ----- FreeHugeBlock() "AllocateHugeBlock" allocates 500 blocks each of size 62000 bytes. And "FreeHugeBlock" frees the same. These two functions are taking most of my execution time. What I want to know is, whether there is any workaround for doing the same in a much less time? Thanks in advance, Regards Sunil -- __________________________________________________________________________ The trouble with being punctual is that nobody's there to appreciate it. --Franklin P. Jones __________________________________________________________________________ --------------6BA90FC783E18B9E6832DC28 Content-Type: text/x-vcard; charset=us-ascii; name="sunilv.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Sunil V. Content-Disposition: attachment; filename="sunilv.vcf" begin:vcard n:V;Sunil tel;home:341 4609 tel;work:556 0136 / 138 / 105 x-mozilla-html:FALSE org:Accord Software & Systems Pvt. Ltd.;Software Division adr:;;;;;; version:2.1 email;internet:sunilv AT accord-soft DOT com x-mozilla-cpt:;-3328 fn:Sunil V end:vcard --------------6BA90FC783E18B9E6832DC28--