>> Instead of
>> just enabled or disabled, would it make more sense to add a third (and
>> new default) option, that enables reference counting for dbg and devel
>> modes but disables it for opt/prof?
> 
> Yes... as soon as possible.

(lets hope this gets out before my battery dies.)

The answer is no, it is not worth removing in optmized mode for non-threaded
applications.

Look at the reference counter - in debug mode it tracks references on a
per-object basis using rtti and is expensive.

In devel- and opt- modes, the reference counter is just a global int which
gets ++ and --'ed, independent of object type.

This is only a gross count - it lets you know if you created more objects
than were destroyed, and in that case warns you to recompile in debug mode
and find the error (in the LibMeshInit descructor).

I think it should stay, at least without threading.

-Ben


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to