New submission from Inada Naoki <songofaca...@gmail.com>:
BUILD_CONST_KEY_MAP can be optimized based on #41835 optimization. 1. compiler checks keys tuple is distinct. 2. Add distinct flag to BUILD_CONST_KEY_MAP oparg To be considered: * Should we use new opcode, instead of flag in oparg? * Is this technique safe? Wrong co_consts can make invalid dict instance. ---------- assignee: methane components: Interpreter Core messages: 379415 nosy: methane priority: normal severity: normal status: open title: Optimize BUILD_CONST_KEY_MAP for distinct keys type: performance versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42126> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com