in reply to Re^2: OOP/Linked List Question
in thread OOP/Linked List Question
Instead of shifting all the list elements up or down, I would prefer to just delete a node an update a pointer.
How big is your list?
I ask for two reasons:
And sometimes, the easy option is good enough. If your list is long enough for the cost of spliceing to become a problem, then you will also be approaching that point at which contructing linked lists from either hashes or arrays starts to consume very large volumes of memory.
Using a heap, or even a string-based list may prove to be fast enough whilst keeping your memory consumption with the range of sanity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: OOP/Linked List Question
by hok_si_la (Curate) on Feb 08, 2005 at 04:11 UTC | |
by BrowserUk (Patriarch) on Feb 08, 2005 at 04:24 UTC |