# DRbUndumped and Marshal

**URL:** <https://www.ruby-forum.com/t/drbundumped-and-marshal/50766>\
**Category:** Ruby\
**Created:** [December 20, 2005, 11:46pm UTC](https://www.ruby-forum.com/t/drbundumped-and-marshal/50766 "2005-12-20T23:46:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/90ced4/32.png) [@kevben](https://www.ruby-forum.com/u/kevben)\
**Post date:** [December 20, 2005, 11:46pm UTC](https://www.ruby-forum.com/t/drbundumped-and-marshal/50766/1 "2005-12-20T23:46:07Z")

</div>

I’m using DRb with quite a few objects marked as DRbUndumped. Some of  
these  
objects also need to persist to disk, which I was using Marshal to do  
before  
I introduced the DRb chunk and it worked just fine. Now, of course, I  
get an  
error when I try to Marshal anything, so I was using YAML. Which works  
great  
but is slow.

The files do not need to be human readable, so is there any way to  
either  
uninclude DRbUndumped or allow Marshall to temporarily bypass  
DRbUndumped so  
I can have the speed of Marshal?

---

<div class="post-metadata">

**Author:** ![kevben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/90ced4/32.png) [@kevben](https://www.ruby-forum.com/u/kevben)\
**Post date:** [December 21, 2005, 1:25am UTC](https://www.ruby-forum.com/t/drbundumped-and-marshal/50766/2 "2005-12-21T01:25:45Z")

</div>

On Dec 20, 2005, at 4:45 PM, Kevin B. wrote:

> The files do not need to be human readable, so is there any way to  
> either  
> uninclude DRbUndumped or allow Marshall to temporarily bypass  
> DRbUndumped so  
> I can have the speed of Marshal?

Instead of using DRbUndumped, you can wrap the object to send:

obj\_to\_share = DRbObject.new( my\_object ) # will be shared by proxy

Since you didn’t modify the class, I’m _assuming_ it would Marshal  
(untested).

Hope that helps.

James Edward G. II
