David Megginson writes: > Norman Vine writes: > > > but how about having the compile time option to turn it off > > > > ie > > > > #ifdef DO_TRACE // or any good memonic > > #define DO_TRACE_READ(type) if(getAttribute(TRACE_READ)) trace_read(type) > > #define DO_TRACE_WRITE(type) if (getAttribute(TRACE_WRITE)) > > trace_write(type) > > #else > > #define DO_TRACE_READ(type) > > #define DO_TRACE_WRITE(type) > > #endif > > Do you think that there would be enough of a saving to make a > difference? Currenly, the only overhead is a quick check of a bit > value to see if the attribute is set (we do a similar check for > read/write permissions).
I would say that the safest way would be to actually profile this to see. Curt. -- Curtis Olson Intelligent Vehicles Lab FlightGear Project Twin Cities [EMAIL PROTECTED] [EMAIL PROTECTED] Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel