Instead of using std::copy, clear the vector first and add new elements. NFC.
Details
Details
- Reviewers
pcc • espindola - Commits
- rGc6bf37d56d73: Instead of using std::copy, clear the vector first and add new elements. NFC.
rLLD329107: Instead of using std::copy, clear the vector first and add new elements. NFC.
rL329107: Instead of using std::copy, clear the vector first and add new elements. NFC.
Diff Detail
Diff Detail
- Build Status
Buildable 16686 Build 16686: arc lint + arc unit
Event Timeline
Comment Actions
Out of curiosity - what was the motivation for this change? I'd expect that
copy would be faster than repeated push_back (though maybe LLVM can
optimize it to match)