Skip to content

avoid some unnecessary copies#4589

Merged
danmar merged 1 commit intocppcheck-opensource:mainfrom
firewave:move
Dec 18, 2022
Merged

avoid some unnecessary copies#4589
danmar merged 1 commit intocppcheck-opensource:mainfrom
firewave:move

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

Found while looking into the fixes for the upcoming performance-unnecessary-copy-on-last-use clang-tidy check.

@orbitcowboy orbitcowboy marked this pull request as ready for review November 20, 2022 11:29
@firewave firewave marked this pull request as draft November 20, 2022 11:43
@firewave
Copy link
Copy Markdown
Collaborator Author

This was an intentional draft since I have not profiled the changes yet (although they should not have much impact).

@orbitcowboy orbitcowboy marked this pull request as ready for review November 20, 2022 18:40
@orbitcowboy orbitcowboy marked this pull request as draft November 20, 2022 18:40
@firewave firewave marked this pull request as ready for review December 11, 2022 20:48
@firewave
Copy link
Copy Markdown
Collaborator Author

The callgrind execution in the CI shows a very slightly regression but it is caused by increased instruction counts for libc calls. The affected code is not related to those changes. I also saw this when comparing earlier revisions.

It appears to be an issue with callgrind though - see llvm/llvm-project#53587.

@danmar danmar merged commit dc5c5de into cppcheck-opensource:main Dec 18, 2022
@firewave firewave deleted the move branch December 18, 2022 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants