[Python-Dev] sys.intern should work on bytes (original) (raw)
Jesus Cea jcea at jcea.es
Fri Sep 20 15:36:45 CEST 2013
- Previous message: [Python-Dev] sys.intern should work on bytes
- Next message: [Python-Dev] sys.intern should work on bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----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-----
- Previous message: [Python-Dev] sys.intern should work on bytes
- Next message: [Python-Dev] sys.intern should work on bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]