#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
Swapping two blocks of memory that reside inside a larger block, in constant memory
30
·
Raymond Chen
·
Jan. 1, 2026, 3:10 p.m.
Old New Thing
Code
Memory Management
programming techniques
software development
Summary
This blog post discusses a variation of the constant-memory rotation technique for swapping blocks of memory within a larger block.
Read full post on devblogs.microsoft.com →
MORE POSTS LIKE THIS
Swapping matrix names in a loop
Fortran Lang Discourse ·
Aug 16, 2026
Fortran
Memory Management
Avoiding large stack frames by passing &mut self instead of self
Users Rust Lang ·
Jul 26, 2026
Rust Programming
Performance Optimization
Ante: A New Way to Blend Borrow Checking and Reference Counting
Evan Ovadia ·
Jun 28, 2026
programming-languages
Mojo Programming Language
Memory Management in C++ by Patrice Roy
Sandordargo ·
Jun 17, 2026
books
C++
Benchmarks Are Free Now
Daniel Doubrovkine (dB.) @dblockdotorg ·
Aug 15, 2026
ruby
benchmarking
Practical Loop Engineering
Addy Osmani ·
Aug 14, 2026
Loop Engineering
software development
Discover more posts →
AUTHOR
BLOG POST FEATURED ON
Hacker News
3 points
Add this plugin to your blog
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google