3 ms·
Do you have specific knowledge about how more modern processors handle these cases? I was particularly excited to find this article because it was the only sou
by nkurz 12y ago
Do you have specific knowledge about how more modern processors handle these cases? I was particularly excited to find this article because it was the only source that explained the hardware counter activity I found here: http://fastcompression.blogspot.com/2014/09/counting-bytes-fast-little-trick-from.html http://fastcompression.blogspot.com/2014/09/counting-bytes-f...
Yann was trying to write a fast histogram to record the number of occurrences of each character. But the simple version of the program was much slower than expected. After a fair amount of digging, it was determined that "impossible" store forwarding was a factor. Checking the performance counters seemed to confirm that many of the loads were being replayed (executed many times before being retired). Is there another explanation for this?
- raverbashing 12y agoFrom this it looks like it might be something similar really https://docs.google.com/document/d/18gs0bkEwQ5cO8pMXT_MsOa8Xey4NEavXq-OvtdUXKck/pub https://docs.google.com/document/d/18gs0bkEwQ5cO8pMXT_MsOa8X... I'm not very familiar with the modern things in the Core architecture
- nkurz 12y agoYes, I think so too! But I'm biased almost surely. You probably didn't notice, but the "Nathan Kurz" who wrote that email and the 'nkurz' that posted this are both me. That's why I was excited to finally find some sort of external confirmation. :)
- raverbashing 12y agoAaah sorry I didn't notice :) Sorry, my knowledge of the microprocessor internals have been going down these past years (and they are becoming more complex)