[vtk-developers] vtkGarbageCollector performance

Sean McBride sean at rogue-research.com
Fri Feb 4 11:41:01 EST 2011


On Thu, 3 Feb 2011 17:26:37 -0700, David Gobbi said:

>> Do me a favour and search all of VTK for VTK_LEAN_AND_MEAN... it's not
>> #defined anywhere (except vtkWinCE.h, oddly enough).  If one wants to
>> enable it, is one supposed to #define it somewhere?  There doesn't seem
>> to be any CMake variable to turn on/off... or am I missing something?
>
>Ah, I see.  I would have thought that, at the very least, CMake would add
>it as "-D VTK_LEAN_AND_MEAN" to the compiler command line.  When
>I looked through some "historical" VTK releases, I found out where it used
>to be defined: in pcmaker.exe.  So it looks like it was an option that only
>used for building in Release mode on Windows, and that was back around
>ten years ago.  I thought that it was still used for something, but it seems
>that I was wrong.

Thanks for confirming my sanity. :) So then, profiling has revealed that
having VTK_LEAN_AND_MEAN on improves GC performance, yet
VTK_LEAN_AND_MEAN is basically cruft at this point.

What's its replacement these days?  Good old NDEBUG or something else?

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada





More information about the vtk-developers mailing list