mccdo/osgbullet

Changes iter++ to ++iter to improve performance

Closed this issue · 4 comments

The attached patch changes the use of osg::Vec3Array iterators (and a few 
others) to use prefix operations.

Original issue reported on code.google.com by godbyk@gmail.com on 27 Jan 2012 at 5:12

Attachments:

Hi Kevin -- Can you direct me to an online reference that explains why ++it 
performs better than it++? Thanks.

Original comment by SkewMat...@gmail.com on 27 Jan 2012 at 2:40

Ignore that request. I found it. Thanks.

Original comment by SkewMat...@gmail.com on 27 Jan 2012 at 2:44

Original comment by SkewMat...@gmail.com on 1 Feb 2012 at 7:50

  • Changed state: Accepted
Thanks, Kevin. I'll have to get in the habit of using prefix increment. Patch 
applied, fix in r345.

Original comment by SkewMat...@gmail.com on 1 Feb 2012 at 8:00

  • Changed state: Fixed