Dispatches from Maine

Just another person of little note writing about ordinary things. That I reside in Maine is icing on the cake.

15 September 2005

PDC05: Day Four (C++ Optimization Best Practices)

Kang Su Gatlin (blog) gave this presentation on "C++ Optimization Best Practices." The unmanaged code optimizations were largely the same as what I saw during the keynote, with a few additions:
  • OpenMP helps with multithreaded programming, use it.
  • Avoid Double-Thunks - you cannot dllexport managed calls without paying the double-thunk cost.
  • Compiling managed C++ with /clr:pure or marking dllexported calls as _clrcall improves performance by a factor of seven.


Post a Comment

Links to this post:

Create a Link

<< Home