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

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top