Forum: Ruby Efficiency vs. simplicity

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mike A. (Guest)
on 2006-03-16 21:55
(Received via mailing list)
In passing along event objects down a ui hierarchy, I can either modify
the
event and pass it along, or create a new event at each level.  The first
case
is efficient, but introduces side effects.  In the second case, there is
a lot
of object creation going on.  I was wondering if Ruby uses object
recycling
internally?  If not I guess I could roll my own, or is it really worth
it?

Thanks,
Mike
This topic is locked and can not be replied to.