[issue33554] Optimize PyDictObject

2018-05-17 Thread b@n

New submission from b@n :

make_keys_shared reusing oldkeys memory

--
components: Interpreter Core
messages: 316901
nosy: b@n
priority: normal
severity: normal
status: open
title: Optimize PyDictObject
type: enhancement
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue33554>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33554] Optimize PyDictObject

2018-05-17 Thread b@n

b@n  added the comment:

Will not break OrderedDict, The order is still the same.

--

___
Python tracker 
<https://bugs.python.org/issue33554>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33554] Optimize PyDictObject

2018-05-17 Thread b@n

b@n  added the comment:

A little performance optimization, but I think the key is not in performance 
optimization.
The semantics of the dictresize function are not uniform, and it is 
inconvenient for others to read. The dictresize function should be split to 
make it just resize. What do you think?

--

___
Python tracker 
<https://bugs.python.org/issue33554>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com