Serhiy Storchaka added the comment:

I agreed that the duplication was made for reasons, but these reasons can be 
not valid or less weighty now, after a number of changes made last years like 
shared keys or compact dicts. An overhead of additional levels of indirection 
and complex code of dk_get_index() can be much larger than the benefit of code 
duplicating.

I think neither macrobenchmarks nor microbenchmarks would not show the true 
effect of this change. The code should be analyzed with more precise tools, 
similarly to how the set implementation was tuned. I think the patch should not 
be pushed without such analysis. Perhaps Raymond will found a time to do this.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29304>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to