2 ms·
Ok, I’ll bite: in which cases does content addressable memory obsolete memcpy? It’s just a lookup table in hardware…
by meindnoch 4y ago
Ok, I’ll bite: in which cases does content addressable memory obsolete memcpy? It’s just a lookup table in hardware…
- actionfromafar 4y agoContent addressable memory is the ultimate "zero copy architecture". Imagine a "CPU instruction" or library call which determines that, "no, I have already seen this address" (where address isn't an address as much as a unique hash) and can pass that hash along to the destination instead of running a copy. Overhead increases by effectively removing pointers as we know them, replacing them with hash+length, but the reward is lower memory pressure and better cache locality. It also carries the promise of making a "buffer overrun" not only impossible but unthinkable. In such a world, incrementing "one extra" would not step into some other heap or stack, because everything would be segmented.