[Twisted-Python] Need words of wisdom regarding PB
glyph at divmod.com
glyph at divmod.com
Thu Jun 29 19:00:21 MDT 2006
On Thu, 29 Jun 2006 20:18:14 -0400, Paul G <paul-lists at perforge.com> wrote:
>i was compressing the data before sending it over pb, while you
>seem to be interested in doing this automagically at the pb or transport
>level.
This is, nevertheless, generally the correct way to compress data in PB. PB itself is so low-overhead that compression isn't going to buy you much in terms of overhead reduction, and jellying/unjellying something that is already a byte sequence is a waste of time. compress the data, transfer blocks of compressed data as PB strings - the strings are incredibly low overhead and length-prefixed so there isn't any real parsing overhead.
More information about the Twisted-Python
mailing list