3 ms·
Could probably overcome that by using integers, but converting them to a pointer after accessing (like '0'+1 is '1').
by deepsun 1y ago
Could probably overcome that by using integers, but converting them to a pointer after accessing (like '0'+1 is '1').
- wtallis 1y agoDo you mean storing the next index/offset and having the pointer value calculated as late as possible by adding the starting address (and maybe multiplying the index by sizeof)? That would probably defeat/mislead Intel's prefetcher, as described at https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/data-dependent-prefetcher.html https://www.intel.com/content/www/us/en/developer/articles/t...