On Wed, 6 Jul 2005, John Siracusa wrote:
On 7/5/05, Rick Measham <[EMAIL PROTECTED]> wrote:
DateTime::Diet (attached) is a simple wrapper around DateTime that
handles simple new(), set() and get methods. If you ask it for something
it can't handle by itself, it reblesses your object into full DateTime
and then calls the method on the DateTime object.
If you're going for speed, there's more low-hanging fruit to be had. Check
out my modifications in DateTime::Diet2 (attached).
Yeah, I was thinking that we'd do something like this if we're going to
turn this into an officially blessed implementation. I was assuming Rick
just used AUTOLOAD for a quick proof of concept.
I'll bet you could get another few percent by using string eval to generate
the accessor methods...
Or just hand-coding them. It's not like there's that many.
-dave
/*===================================================
VegGuide.Org www.BookIRead.com
Your guide to all that's veg. My book blog
===================================================*/