# Too many marshall dump/load calls?

**URL:** <https://www.ruby-forum.com/t/too-many-marshall-dump-load-calls/150668>\
**Category:** Rails\
**Created:** [October 11, 2008, 5:33am UTC](https://www.ruby-forum.com/t/too-many-marshall-dump-load-calls/150668 "2008-10-11T05:33:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a587f6/32.png) [@kuma](https://www.ruby-forum.com/u/kuma)\
**Post date:** [October 11, 2008, 5:33am UTC](https://www.ruby-forum.com/t/too-many-marshall-dump-load-calls/150668/1 "2008-10-11T05:33:10Z")

</div>

Hi all,

I have a model that is populated from XML using REXML. As many have  
written, REXML seems to add singleton methods incompatible with normal  
Marshalling as used with file/db session stores. So, I wrote my own  
\_dump and \_load methods. In the course of doing so, I noticed that the  
dump/load is called _way_ more often than I thought. One request to a  
basic ‘show’ method results in about 18 dump/loads.

Any idea what could cause this? I have made heavy use of partials,  
content\_for, etc. to clean up my views. Could that be the culprit?

Thanks,

Brian

---

<div class="post-metadata">

**Author:** ![kuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a587f6/32.png) [@kuma](https://www.ruby-forum.com/u/kuma)\
**Post date:** [October 12, 2008, 2:09am UTC](https://www.ruby-forum.com/t/too-many-marshall-dump-load-calls/150668/2 "2008-10-12T02:09:36Z")

</div>

On Oct 11, 4:33 am, Brian H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> content\_for, etc. to clean up my views. Could that be the culprit?  
> The obvious thing would be to have your dump method log the callstack  
> (eg with caller) whenever it is called. Run your action and see who is  
> causing dump to be called.

Fred
