As I learn more and more about standard C++, I see more and more speakers, authors, and bloggers emphasize the importance of cache-hit for performant programs. Yet I haven't seen any efforts, in the standard or any proposals, to deal with this issue, except the usual suggestion of "use vectors, because the memory is contiguous".
My observation can certainly be biased, and of course, different hardware platforms have different memory hierarchy structures, PC and embedded systems are totally different worlds (my experience is with PC only). Striving to be portable and to avoid making assumptions that would restrict the use case is the core philosophy of C++. But cache use is too important to be a topic left un-dealt-with. And, in my primitive understanding, as multicore become (or is already) the main hardware platform programs run on, cache utility become even more important.
So, does anyone know if there's any plan to address this topic? Or it should not be addressed in the standard at all because it is an implementation-level problem? Thank you.
Aucun commentaire:
Enregistrer un commentaire