On Mon, 24 Mar 2003, Joshua Hoblitt wrote: > Maybe something like this should be added to the docs? > > -- > diff -ur DateTime-0.08/lib/DateTime.pm new.DateTime/lib/DateTime.pm > --- DateTime-0.08/lib/DateTime.pm 2003-03-20 20:02:27.000000000 -1000 > +++ new.DateTime/lib/DateTime.pm 2003-03-24 21:43:32.000000000 -1000 > @@ -1347,7 +1347,8 @@ > > When given a C<DateTime::Duration> object, this method simply calls > C<invert()> on that object and passes that new duration to the > -C<add_duration> method. > +C<add_duration> method. It is an optimization to to add a negative > +duration rather than to subtract a positive one. > > =item * subtract( DateTime::Duration->new parameters )
I'm not sure it belongs in the docs, but if it does, then it probably belongs in an "optimizations" section because there's other things one can do to make DateTime run faster. The reason I'm not sure it belongs in the docs is that it may be better as part of the upcoming FAQ. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
