[ZODB-Dev] Re: Problem Storing Infinity

2006-09-12 Thread Jim Fulton


On Sep 12, 2006, at 4:42 PM, Tres Seaver wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Fulton wrote:


On Sep 12, 2006, at 3:07 PM, Tim Peters wrote:


[David Binger]

That's interesting.
It appears that pickle protocol 2 chokes on inf.


[Tim Peters]
As above.  BTW, why protocol 2 specifically?  Protocols 1 and 2  
treat

floats the same way.


[David]

I was thinking that the default protocol is 1, but I see
now that the default is 0.


Strange, eh?  Since only protocol 0 existed at first, I suppose this
was a nod to backward compatibility.


Plus version 0 pickles are more readable. :)  Honestly.


The verbosity comes at a non-trival price in high-write scenarios.


Sure. That's why we invented protocol 1 as part of the cPickle effort
and why we use it in ZODB.

Being able to compress away the class name of 'OOBucket', for  
instance,

could reduce the amount of crap slung throgh the network by a lot.


Yeah, which protocol 2 would let us do.

Jim

--
Jim Fulton  mailto:[EMAIL PROTECTED]Python 
Powered!
CTO (540) 361-1714  
http://www.python.org
Zope Corporationhttp://www.zope.com http://www.zope.org



___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


[ZODB-Dev] Re: Problem Storing Infinity

2006-09-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Fulton wrote:
> 
> On Sep 12, 2006, at 3:07 PM, Tim Peters wrote:
> 
>> [David Binger]
> That's interesting.
> It appears that pickle protocol 2 chokes on inf.
>>
>> [Tim Peters]
 As above.  BTW, why protocol 2 specifically?  Protocols 1 and 2 treat
 floats the same way.
>>
>> [David]
>>> I was thinking that the default protocol is 1, but I see
>>> now that the default is 0.
>>
>> Strange, eh?  Since only protocol 0 existed at first, I suppose this
>> was a nod to backward compatibility.
> 
> Plus version 0 pickles are more readable. :)  Honestly.

The verbosity comes at a non-trival price in high-write scenarios.
Being able to compress away the class name of 'OOBucket', for instance,
could reduce the amount of crap slung throgh the network by a lot.

> (Some time I really need to promote xmlpickle more. It's very nice for
> looking at pickles. Unfortunately, it doesn't understand protocol 2 yet.)

Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFBxu3+gerLs4ltQ4RAv1aAKCyphLd7f9aOns81hGa0vJGEEDOVgCdEHiB
00ihZl8yJf2q+2CpZ3gBnNg=
=wWjx
-END PGP SIGNATURE-

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev