Menu

#1 \'append\' should use \'move\'

open
nobody
None
3
2007-07-16
2007-07-16
No

When appending input data which can be lost (For flushing an output container or reading from a pipeline), it should use 'move()' because the input data will not be read again. It would allow to use 'swap' and have less memory allocations. See 'append()'.

Discussion

  • Remi Chateauneu

    Remi Chateauneu - 2007-07-16
    • priority: 5 --> 3
    • summary: 'append' should use 'move' --> \'append\' should use \'move\'
     
  • Remi Chateauneu

    Remi Chateauneu - 2007-07-21

    Logged In: YES
    user_id=794960
    Originator: YES

    Ideally, we could use swap and swap_ranges or copy and copy_ranges, this wrapped into move / move_ranges

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.