[Python-Dev] sys.intern should work on bytes

Jesus Cea jcea at jcea.es
Fri Sep 20 15:36:45 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 20/09/13 15:31, Antoine Pitrou wrote:
> sys.intern is an internal interpreter optimization and should be 
> orthogonal to pickling. If pickle can't detect already-seen bytes 
> object, then you may file an improvement request on the bug
> tracker.

Understood. Thanks for the clarification.

Pickle manage correctly "same object" references, but not "different
objects but equivalent". That is the issue. But for most uses this is
not a problem, and implementing this redundance removal looks like a
performance cost that few users would benefice from, but everybody
pays. Pickle is already slow enough now :).

- -- 
Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
jabber / xmpp:jcea at jabber.org  _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQCVAwUBUjxPbZlgi5GaxT1NAQIyYQQAplpwDnz2/0bNTF7KN7V0PQnXZQknEnvL
0VACm298Y386hs8bJQFlRlTOzfhguulaaEwdqLaBPkXMKA7LBaVRHM1v5o+Xb40X
7DwSKglkbt6HgX7/nDMX4qk9Kxb2ZEVz+XOozPta2NRoZmaz8y7Xyqc/+4+UTzHH
XsNJ2H5yVEo=
=GPtw
-----END PGP SIGNATURE-----


More information about the Python-Dev mailing list