On Thu, Sep 17, 2020 at 11:50 PM Marco Sulla <[email protected]> wrote: > > I do not like code duplication, but dictobject.c has already a lot of > duplicated copies of the same function for optimization (see > lookdict).
lookdict is very special case. It is used for namespace lookup. It is the performance critical part of CPython. We should take care of cost/merit ratio always. Regards, -- Inada Naoki <[email protected]> _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/45NMAIRSHRNFKYAGRA2EGPQDJ7IS7EXY/ Code of Conduct: http://python.org/psf/codeofconduct/
