Fun Stuff > CLIKC

Programing question

<< < (3/3)

Catfish_Man:
In general the STL version of any given data structure will be faster than one you write yourself, unless you're willing to put a good deal of time and expertise into optimizing it for your specific situation. The trick is looking at your access patterns, data set, and priorities and deciding which structure is best suited to the task.

Fiddler:
Halfway through your post I was already thinking about the Vector class.  C++ Vectors arent as great as the Java versions just because the Vector class is a little older now.  But you'll get good performance out of them and it will make your code a lot cleaner thanks to Vector's data handling methods.  It has functions to handle pretty much everything your going to want to do with an unordered linked list so I'd reccomend it.

Navigation

[0] Message Index

[*] Previous page

Go to full version