Pocket Gems Interview Question

How would you potentially c++ optimize code?