Passing a symbol to std::move that is marked const is a no-op, which can be fixed in two ways:
- Remove the
const, or - Remove the
std::move
Passing a symbol to std::move that is marked const is a no-op, which can be fixed in two ways:
const, orstd::moveThe following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
4@@ -5,6 +5,7 @@ misc-unused-using-decls,
5 modernize-use-default-member-init,
6 modernize-use-nullptr,
7 performance-for-range-copy,
8+performance-move-const-arg,
BlockToJsonVerbose benchmark is about 2% faster.
Also, for some unknown reason, the BlockToJsonVerboseWrite bench uses 5% less memory?
MarcoFalke
DrahtBot
Sjors
ryanofsky
Labels
Refactoring