Redline Trading Interview Question

How would you optimize a C program using Cache? What about Register?