diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2017-09-04 17:47:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-04 17:47:53 -0700 |
commit | 550370957cb0e40bfc497174c95fee47d01de995 (patch) | |
tree | ce749b979fb3350b73af01fa360eeb6885ec2cd0 /Python | |
parent | 759e30ec47048cb9835c62aaeac48748c8151390 (diff) | |
download | cpython-git-550370957cb0e40bfc497174c95fee47d01de995.tar.gz |
Add comment to explain the implications of not sorting keywords (#3331)
In Python 3.6, sorted() was removed from _make_key() for the lru_cache and instead rely on guaranteed keyword argument order preservation. This makes keyword argument handling faster but it also causes multiple callers with a different keyword argument order to be cached as separate items. Depending on your point of view, this is either a performance regression (increased number of cache misses) or a performance enhancement (faster computation of keys).
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions