On Thu, Sep 17, 2020 at 11:50 PM Marco Sulla
<marco.sulla.pyt...@gmail.com> 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  <songofaca...@gmail.com>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/45NMAIRSHRNFKYAGRA2EGPQDJ7IS7EXY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to