Efficiency vs. simplicity

M

Mike Austin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top