Re: using prefetch

2013-02-15 Thread Valdis . Kletnieks
in on the same cache line. That's probably more productive than trying to add prefetch calls all over the place. So - any hints, what are the guidlines for using prefetch()? Only use it if you have good reason to believe that you *will* need that variable (in other words, it's not in the unlikely half

Re: using prefetch

2013-02-15 Thread Kevin Wilson
boost. So - any hints, what are the guidlines for using prefetch()? You really should *not* prefetch() all variables you want to use. Prefetch itself generates code which needs cpu cycles. It can quickly make your program slower. Use it only in places where - the data is very unlikely