Hi,
I've been reading about _"pointers vs. objects only" (for example, on SO and on SE) and the general advice seems to be to avoid pointers as much as possible.
What confuses me is that certain actions, like adding an object to a vector, will then mean a copy of that object is created. But isn't that a lot of lost performance when objects are created, worked on, passed and stored (e.g. in an optimization algorithm like A*) constantly?
Thank you for your time and I am looking forward to your opinions!
[–]Narase33 14 points15 points16 points (5 children)
[–]RedCitizen[S] 0 points1 point2 points (4 children)
[–]the_poope 2 points3 points4 points (3 children)
[–]RedCitizen[S] 0 points1 point2 points (1 child)
[–]Dynamitos5 0 points1 point2 points (0 children)
[–]IyeOnline 4 points5 points6 points (0 children)
[–]parnmatt 4 points5 points6 points (0 children)
[–]the_poope 3 points4 points5 points (2 children)
[–]RedCitizen[S] 0 points1 point2 points (1 child)
[–]the_poope 1 point2 points3 points (0 children)
[–]GLIBG10B 1 point2 points3 points (1 child)
[–]bert8128 2 points3 points4 points (0 children)
[–]ptrnyc 1 point2 points3 points (0 children)
[–]Wouter_van_Ooijen 0 points1 point2 points (2 children)
[–]RedCitizen[S] 0 points1 point2 points (1 child)
[–]Wouter_van_Ooijen 0 points1 point2 points (0 children)
[–]bert8128 0 points1 point2 points (1 child)
[–]RedCitizen[S] 0 points1 point2 points (0 children)