• Content count

  • Joined

  • Last visited

Community Reputation

202 Neutral

About ChrisBarnhouse

  • Rank
  1. Cache friendlier way to access 2D array?

    Wait till towards the end of your project, profile your code, then determine if the array access is even a bottleneck worth optimizing.
  2. C++ how to avoid calling destructor

    Personally, I always use pointers in container templates. This avoid unnecessary memory copies and constructor/destructor calls. I'm a bit of a memory nazi though, so I prefer doing the new and delete myself.