Original Post
Hi all,
Im working on a project right now that heavily utilizes the STL. (mostly vectors). I read somewhere that the STL invokes copy constructors when dealing with the data it stores. My question is... What are copy constructors? are they slow? should I use use "new" and "delete" instead with the containers? I read that it dosent matter much when dealing with small data like ints. but I have classes that have vectors that own vectors which own vectors. These can grow very large... should I really be "copy constructing" things this big? where do I draw the line? I would really hate to rewrite tons of code, plus working with new and delete makes my code much less clean (not to mention complicated , and memleak vunerable). but im willing to sacrafice simplicity for speed.
One more thing...
NEHE is great and all, but where do I find out how to optimize the living hoohaa out of opengl? or anything else for that matter ( ex: casting an float to an int with memory addresses instead of "int SomeInt = (int)SomeFloat;" )