http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gameprogrammer] faster lookup, lists, vectors, maps?



I would like to know what STL container provides faster access time in short lists of elements. In my game, entities have some properties: basic stats, attributes and skills, which I plan to unify under a single data structure. Such lists of properties are accessed by scripts and currently Im using lists. Does vectors or maps provides faster access when number of elements is less than 10-20?

--
http://dsgp.blogspot.com | Linux, programación, juegos
Have no place I can be since I found Serenity
But you can’t take the sky from me

		
______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html