Re: pickle alternative





> Ahh, I had forgotten that. Though I can't recall what an attack
> might be, I think it's because the C code hasn't been fully vetted
> for unexpected error conditions.

I tried out the marshal module anyway.

marshal can serialize small structures very qucikly, however, using the
below test value:

value = [r for r in xrange(1000000)] +
[{1:2,3:4,5:6},{"simon":"wittber"}]

marshal took 7.90 seconds to serialize it into a 5000061 length string.
decode took 0.08 seconds.

The aforementioned recipe took 2.53 seconds to serialize it into a
5000087 length string. decode took 5.16 seconds, which is much longer
than marshal!!

Sw.

.



Relevant Pages

  • Re: Passing byte[][] from C# asp code-behind to client-side j<ava>
    ... Then pass this string into C# component and decode it there. ... > object is serializable you may try to serialize it and store data in XML ... >> C# Enthusiast ...
    (microsoft.public.scripting.jscript)
  • Re: web service not serializing all object properties
    ... Web services will only serialize public properties. ... private string strUnParsed_m; ... public string UnParsed ... public ValuePart Add ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: XMLSerialization of an object
    ... Public OrderDetails As New ArrayList ... Private _item As String ... Public Property Quantity() As Integer ... serialize the order-object, I get the error "There was an error generating ...
    (microsoft.public.dotnet.framework)
  • Re: Wrap a Serializable Object
    ... "Item" element would serialize to be either ObjectA or ObjectB, ... string attribute assigned to an Element. ... private string msFirstName; ... public string FirstName ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Copy/Clone object
    ... This can be used to clone an object: serialize the object to a string, and use deserializing to create the clone from the string. ...
    (microsoft.public.dotnet.languages.csharp)