Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2019-12-02 18:24:44

Zach Laine wrote:
> Ok, I tried this myself on Quickbench:

I tried to fix that to add the null terminator, but as a result both
push_backs were entirely optimized away.

The Append case is how I think this code should be written. Character by
character loops are only useful as a worst-case estimate; if there's a
performance problem there, you'd rewrite the loop to not push_back
characters one by one, not try to make it go faster.

Boost list run by bdawes at, gregod at, cpdaniel at, john at