IrrLicht's fast containers

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
SwiftCoder
Posts: 32
Joined: Thu Jan 15, 2004 7:33 pm
Location: Carribean

IrrLicht's fast containers

Post by SwiftCoder »

I saturation tested IrrLicht's equivalents to the STL containers, with these interesting results:

list: 50% faster than std::list on most operations, never less than 25% faster.
array: 10% slower than std::vector on most operations, but 30% slower on resizing.
string: not quite as fast as std::string, especially on creation, but overall not noticeably slower.

Anyway, IrrLicht's list is pretty fast!
(this was on GCC 3.3 with optimisation on full).
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Interesting. If irrlichts array is just slightly slower than an std::list, then if I got the diagrams from "Effective C++" right, an Irrlicht::array would be about 40% faster than a std:array.
Crud, how do I do this again?
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

Are Irrlicht lists circularly and doubly linked list? If they are not and implemented simularly to STL that would make them about 50% faster on many test.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Ah, very interesting. I think this means I'll have to optimize the array a little bit. I think it would help a lot by modifying its resizing strategy. Lets see :)
Post Reply