On Dec 7, 2013, at 4:34 PM, Tom Browder wrote: >> Alas, they shouldn't be removed everywhere throughout the code as testing >> even recently did demonstrate a measurable performance drop. Apparently, we >> do have them in some useful/critical places where the hints help the >> compiler. > > Well, that's good to know--much of the "old wives' tales" I sometime > read talks about how modern compilers mostly take care of such and > 'register' is almost obsolete.
That tale is "mostly" true. Probably 99% of the register keywords we have are doing nothing useful. We just undeniably have a few in some performance-critical places that are making a difference in helping the compiler figure out what to keep in cache. If you're not one in a directory that might impact performance, they're probably safe to remove. These are the places I'd have to be more careful: src/librt (and the subdirs especially) src/libbn src/libbu src/rt src/libanalyze src/liboptical src/libfft Cheers! Sean ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
