3 ms·
That's a good point. It's probably more a cache thing than a CPU cycles thing and that might not show up on a straightforward CPU profile. What would happen if
by api 9y ago
That's a good point. It's probably more a cache thing than a CPU cycles thing and that might not show up on a straightforward CPU profile.
What would happen if you used special instructions to try to implement a non-cache-polluting memcpy? Or is that even possible? It's been a while but I seem to think that modern CPUs have a variety of cache control instructions. Zero copy is great but it can be a PITA.
- justincormack 9y agoYou have to use at least one cache line for memcpy. But you need more for pipelining the accesses probably to get good speed. Benchmarking memcpy though is complicated.