diff options
author | Ćukasz Langa <lukasz@langa.pl> | 2018-04-17 00:33:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-17 00:33:59 (GMT) |
commit | 76618061b92e23a53b78b7ec3a173cb0e7749b4a (patch) | |
tree | bf9566760688e23d116ad8ae0d241c7091950463 /Misc/NEWS.d | |
parent | 2bea9476286ad8e2e87bf0415ff743b1487c5018 (diff) | |
download | cpython-76618061b92e23a53b78b7ec3a173cb0e7749b4a.zip cpython-76618061b92e23a53b78b7ec3a173cb0e7749b4a.tar.gz cpython-76618061b92e23a53b78b7ec3a173cb0e7749b4a.tar.bz2 |
[lib2to3] Make grammar pickling faster (#6491)
* Now uses pickle protocol 4
* Doesn't wrap the grammar's `__dict__` in ordered dictionaries anymore as
dictionaries in Python 3.6+ are ordered by default
This still produces deterministic pickles (that hash the same with MD5).
Tested with different PYTHONHASHSEED values.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-04-16-16-21-09.bpo-23403.rxR1Q_.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-04-16-16-21-09.bpo-23403.rxR1Q_.rst b/Misc/NEWS.d/next/Library/2018-04-16-16-21-09.bpo-23403.rxR1Q_.rst new file mode 100644 index 0000000..8116e3b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-04-16-16-21-09.bpo-23403.rxR1Q_.rst @@ -0,0 +1 @@ +lib2to3 now uses pickle protocol 4 for pre-computed grammars. |