Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#83 std::fill optimization

closed-accepted
None
5
2008-04-24
2008-04-05
Andrey Semashev
No

I've attached a patch that optimizes std::fill algorithm when it is used with random access iterators. The optimization uses an additional counter to help compilers to optimize the loop. Such technique is already used in other algorithms and does give performance boost on some platforms.

The patch is against 5.2.0.

Discussion

  • The patch for stl/stlport/_algobase.h

     
    Attachments
    • assigned_to: nobody --> dums
     
    • status: open --> closed-accepted