New submission from Raymond Hettinger <raymond.hettin...@gmail.com>:
For cases where the underlying comparison function is in C (strcoll for example), the pure Python dispatch in cmp_to_key dominates running time. This can be reduced considerably by writing cmp_to_key in C, making its overhead as low or lower than the cost of bound method dispatch. ---------- assignee: rhettinger components: Interpreter Core keywords: easy messages: 132448 nosy: rhettinger priority: low severity: normal stage: needs patch status: open title: Create C version of functools.cmp_to_key() type: performance versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11707> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com