FastMemcpy icon indicating copy to clipboard operation
FastMemcpy copied to clipboard

[Question] about when to use `mm_sfence`

Open dirtysalt opened this issue 4 years ago • 0 comments

Maybe quite naive, but why use mm_sfence if size >= L2 cache size? https://github.com/skywind3000/FastMemcpy/blob/master/FastMemcpy.h#L680

And what if L2 cache size (0x200000) is not actually L2 cache size, is there any impact on performance?

dirtysalt avatar Apr 09 '21 05:04 dirtysalt