Hacker News new | ask | show | jobs
by chmod775 1534 days ago
> What if you want to swap two large memory blocks?

In theory, maybe.

But if that happens in your application and is performance critical, you probably should change it such that you're swapping pointers to them instead...

1 comments

There are very real cases where you may want to swap around actual memory though. Gabage collectors do quite a lot of this type of large memory exhanges.