On Fri, 2004-01-16 at 09:22, david goehrig wrote:

> As for my uploading, I will merge with whatever
> is most current in CPAN (or whoever has the
> latest and greatest stuff) and apply the 2.0
> changes.  The 2.0 interface is pretty much
> all the same, it is just lighter on the memory
> overhead :)

I've come to this discussion late, so if you've already discussed this,
feel free to point me at the archives.

Blessing scalars instead of hashrefs does save memory, but it does mean
that accessing x and y coordinates on an SDL::Rect has to do a method
call and an XSUB call.  If these variables were stored in the blessed
hash (or an array, to save a bit more memory), we could do away with the
XSUB call.

This only applies to a couple of objects -- colors, rects, and some
surfaces.

Maybe it's ultimately not the best idea, but it sticks out in my mind as
something to consider.

-- c

Reply via email to