Re: C# Deque found on the web--thanks to The Game Programming Wiki
- From: Peter Duniho <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Wed, 08 Aug 2007 10:59:51 -0700
Jon Skeet [C# MVP] wrote:
[...]
I *could* have used LinkedList for this (except that I originally wrote it before 2.0, of course) but it feels more like a "queue with occasional random access" than a normal linked list. (Finding the right point to insert a new item is also quicker this way than with a linked list.)
Well, you are free to call it a queue, of course. But it's not really a queue, at least not a pure one. :)
I'm curious what it is about your implementation that makes insertion of new items faster than if using a linked list?
Pete
.
- Follow-Ups:
- Re: C# Deque found on the web--thanks to The Game Programming Wiki
- From: Jon Skeet [C# MVP]
- Re: C# Deque found on the web--thanks to The Game Programming Wiki
- References:
- C# Deque found on the web--thanks to The Game Programming Wiki
- From: raylopez99
- Re: C# Deque found on the web--thanks to The Game Programming Wiki
- From: Peter Duniho
- Re: C# Deque found on the web--thanks to The Game Programming Wiki
- From: Jon Skeet [C# MVP]
- C# Deque found on the web--thanks to The Game Programming Wiki
- Prev by Date: Re: Question on boxing
- Next by Date: Getting ip addresses on the network
- Previous by thread: Re: C# Deque found on the web--thanks to The Game Programming Wiki
- Next by thread: Re: C# Deque found on the web--thanks to The Game Programming Wiki
- Index(es):
Relevant Pages
|