Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Processor cache

Name: Anonymous 2014-01-30 13:06

Hi /prog/,
The people who write high-perforance stuff must use a lot of tricks like putting the data in a continuous chunk of memory and splitting your program by what is done with your data instead of what is your data. Now, all these tricks are used to make sure you don't get a cache miss, but couldn't they be considered premature optimization?

What if the cpu let us specify what should be put in its cache; then compilers could automatically manage this, and people who needs extreme performance would have more control over the cache.

Thanks

Name: Anonymous 2014-01-30 13:26

>>2
Becuase shitprograms would steal each other cache. Or single programs hogs all the cache.
You can use the latter if you have cache-as-ram, and you can prefetch chunks, but giving control to user programs is idiotic.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List