Displaying 1 result from an estimated 1 matches for "serializa".
Did you mean:
serialize
2008 May 21
1
custom serialization problem (marshal_dump, marshal_load)
...a = Array of YYY
@version = 1
def marshal_dump()
return [@version,@data]
end
def marshal_load(var)
@version = var[0]
case @version
when 1
@data = var[1]
else
#do something else
end
end
end
The serialization works correctly when the number of objects YYY is
small, but when it got more than 5000, the serialization doesn''t work.
(the serializaed file has more and less 1 meg)
When I try to not to use marshal_dump and marshal_load. the
serialization works again????
Can someone tell me, wher...