[issue33554] Optimize PyDictObject

2018-05-17 Thread b@n
b@n <ban1...@gmail.com> 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 i

[issue33554] Optimize PyDictObject

2018-05-17 Thread b@n
b@n <ban1...@gmail.com> added the comment: Will not break OrderedDict, The order is still the same. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33554] Optimize PyDictObject

2018-05-17 Thread b@n
New submission from b@n <ban1...@gmail.com>: 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: Pyth