Hi Christian, Could you please send the complete modified file as patch is unreliable means of reviewing merging submission - your patch even fails to apply cleanly.
Details of the submissions protocol can be found at: http://www.openscenegraph.org/projects/osg/wiki/MailingLists/SubmissionsProtocol Thanks, Robert. On Wed, Nov 25, 2009 at 5:54 AM, Christian Ehrlicher <[email protected]> wrote: > Hi, > > during profiling my program I found out that there's a lot of memory > (de)allocation going on in OverlayNode::cut(). > > So instead creating inner-loop variables 'distances' and 'newVertices' > every time, I moved the creation out of the loop and just do a clear() + > reserve() inside the loop. This allows std::vector<> to reuse the old > memory instead allocating new when the new size <= oldsize. > > > Christian Ehrlicher > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
