Re: pickle alternative
- From: simonwittber@xxxxxxxxx
- Date: 31 May 2005 01:25:50 -0700
> 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.
.
- References:
- pickle alternative
- From: simonwittber
- Re: pickle alternative
- From: Andrew Dalke
- Re: pickle alternative
- From: simonwittber
- Re: pickle alternative
- From: Andrew Dalke
- pickle alternative
- Prev by Date: Re: __getattribute__ and __getattr__
- Next by Date: Re: Newbie Here
- Previous by thread: Re: pickle alternative
- Next by thread: Newbie Here
- Index(es):
Relevant Pages
|