Skip to content

feat(post): return std::move of a const object copies (28 Dec) - #294

Open
filipsajdak wants to merge 2 commits into
mainfrom
feat/post-return-std-move-cost
Open

filipsajdak wants to merge 2 commits into
mainfrom
feat/post-return-std-move-cost

Conversation

@filipsajdak

Copy link
Copy Markdown
Contributor

Adds the 28 Dec 2026 post: return std::move of 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

  • The post, written from an advert by Henrique Bucher that I have not seen beyond the LinkedIn screenshots; its numbers are given as theirs and not judged, and no course or sales page is named or linked.
  • LinkedIn and Facebook cards, captions and the OG image.

Verification

  • prose-lint on the post and both captions: OK. check-pubdates, check-llms-sync, check-social-render and the production build passed in the worktree.
  • The warning table was rerun by the lead: a const local warns with -Wpessimizing-move on GCC 16.2 and Clang 22.1. The advert's 11x and 50x figures match the screenshot.

Limits

  • Do not merge yet: waits for the owner's go and the examples PR merge SHA pin.
  • Author link is a placeholder comment. Nothing is queued in Buffer.

Mutation: none, because the change is content only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X

filipsajdak and others added 2 commits November 18, 2026 00:59
…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

No deployments
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.

1 participant