Jump to content

Talk:Swap (computer programming)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Qwerfjkl (bot) (talk | contribs) at 17:26, 2 February 2024 (Implementing WP:PIQA (Task 26)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Swap

I guess this term comes from C++ and their standard library, but is there better refs than C++ documentation?

Problem is that C++ library swap used without strict definition (AFAIK), but I can be wrong. Ushkin N (talk) 07:01, 28 May 2016 (UTC)[reply]

Section about cache

Was introduced in 1. Right now Cache (computing) doesn't mention "swap" or Swap (Computer programming).

I don't remember that "swap function" in any serious publications and literature about CPU/Cache. Both partial and theoretical.

If you prove me wrong with link WP:V, I would happy to read this gem. Ushkin N (talk) 07:08, 28 May 2016 (UTC)[reply]

@Ushkin N: There's nothing about cache in the article (as of now), but there is a "See also" to CPU Cache at the top of Sec. 1. I'd rather it be removed. Swapping really doesn't have any special implications on cache behaviour, or vice versa. Whether the temporary is in a visible CPU register, hidden inside the ALU, in a cache, in main memory or sent on a world-wide cruise is entirely irrelevant to the algorithm. 62.165.255.251 (talk) 07:59, 15 March 2018 (UTC)[reply]