# Efficiency vs. simplicity

**URL:** <https://www.ruby-forum.com/t/efficiency-vs-simplicity/55074>\
**Category:** Ruby\
**Created:** [March 16, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/efficiency-vs-simplicity/55074 "2006-03-16T20:55:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![exile](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/50afbb/32.png) [@exile](https://www.ruby-forum.com/u/exile)\
**Post date:** [March 16, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/efficiency-vs-simplicity/55074/1 "2006-03-16T20:55:29Z")

</div>

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
