Repository navigation
feat(post): return std::move of a const object copies (28 Dec) - #294
Open
filipsajdak wants to merge 2 commits into
Open
filipsajdak wants to merge 2 commits into
filipsajdak wants to merge 2 commits into
Conversation
…s per call Measured on GCC 16.2 and Clang 22.1: which return shapes copy, what the compilers and clang-tidy report for seven of them, where the page faults come from under glibc's malloc thresholds, and when a string passed by value allocates. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X
…std::move post Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the 28 Dec 2026 post:
return std::moveof a const object copies it, 163 page faults per call on a 400 KB vector, and which tools report it.Visual: none, because the change is one post and its social cards; the cards are in social/*/return-std-move-const-copy/.
What is in it
Verification
prose-linton the post and both captions: OK.check-pubdates,check-llms-sync,check-social-renderand the production build passed in the worktree.-Wpessimizing-moveon GCC 16.2 and Clang 22.1. The advert's 11x and 50x figures match the screenshot.Limits
Mutation: none, because the change is content only.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X