windows to linux pickled objects?

Fernando Pérez fperez528 at yahoo.com
Tue Nov 27 16:06:32 EST 2001


brueckd at tbye.com wrote:


> Binary usually helps, but it can work against you too:
> 
>>>> import pickle
>>>> len(pickle.dumps(5.0))
> 6
>>>> len(pickle.dumps(5.0, 1))
> 10
> 
> -Dave

In very peculiar situations, yes (like if you are storing truncated 
data). But in the generic case, it will help.

As always, use what's generically good, and only if it's not enough 
look again. Optimize late, later, later...

f



More information about the Python-list mailing list