Re: Fast linked list
From: Bonj (a_at_b.com)
Date: 12/23/04
- Next message: Doug Harrison [MVP]: "Re: [newbie] _lfind syntax problem"
- Previous message: Bonj: "Re: How well do VC6 & VC .NET work on the same machine"
- In reply to: Mark Randall: "Re: Fast linked list"
- Next in thread: Slava M. Usov: "Re: Fast linked list"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Dec 2004 17:36:39 -0000
If the O.P. doesn't know the maximum size it will ever get to or can't
determine it, then he could reallocate a whole new array -
"adding/deleting/inserting elements can be as slow as necessary" he said.
But it would be better to just put a finger on the maximum ever size at the
beginning. If the O.P. doesn't want to consume the maximum amount of memory
all of the time, then this is something he failed to point out.
"Mark Randall" <strike@rapiercom.freeserve.co.uk> wrote in message
news:uWfKdCI6EHA.3820@TK2MSFTNGP11.phx.gbl...
> Ever tried adding things to a static array?...
>
> - MR
>
> "Bonj" <a@b.com> wrote in message news:32ufadF3ljlf0U1@individual.net...
>> Why don't you just use an array?
>>
>> "Peter Schmitz" <PeterSchmitz@discussions.microsoft.com> wrote in message
>> news:288EB5C0-1AB1-44D8-B719-901B8BC29F6D@microsoft.com...
>>> Hi,
>>>
>>> for my current application, I need a linked list in which I can access
>>> and
>>> walk through at highest speed possible - adding/deleting/inserting
>>> elements
>>> can be as slow as necessary. Now, which template out of the C/C++
>>> standard
>>> library should I use for this - std::list? Or is there a better
>>> implementation out there?
>>>
>>> thanks
>>> Peter
>>
>>
>
>
- Next message: Doug Harrison [MVP]: "Re: [newbie] _lfind syntax problem"
- Previous message: Bonj: "Re: How well do VC6 & VC .NET work on the same machine"
- In reply to: Mark Randall: "Re: Fast linked list"
- Next in thread: Slava M. Usov: "Re: Fast linked list"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|