delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/20/13:00:07

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "John" <John DOT Portal AT btinternet DOT com>
Newsgroups: comp.lang.c,comp.os.msdos.djgpp,comp.compilers.lcc
Subject: Re: hash library - interface criticisms
Date: Sun, 20 Jan 2002 17:45:32 -0000
Lines: 23
Message-ID: <a2evnp$1120n7$1@ID-97861.news.dfncis.de>
References: <3C4ADB8E DOT 552CAE40 AT yahoo DOT com>
NNTP-Posting-Host: host213-1-130-184.btinternet.com (213.1.130.184)
X-Trace: fu-berlin.de 1011548731 34669287 213.1.130.184 (16 [97861])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"CBFalconer" <cbfalconer AT yahoo DOT com> wrote in message
news:3C4ADB8E DOT 552CAE40 AT yahoo DOT com...

I wrote.
==========
As a follow-up, I just did a test inserting 500,000 nodes of a linked list,
this involves setting the previous and next pointers and the data item,
amongst other things. This took 280ms. (I have quite a fast machine)

To free the same 500,000 nodes it takes 9,236ms, and the code in this case
is only walking through the list and calling free().
============

Just tried linking with MSVCRT.LIB and the timings were thus.

allocating 264ms, free-ing 180ms. :)

John





- Raw text -


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