[New-bugs-announce] [issue11707] Create C version of functools.cmp_to_key()

Raymond Hettinger report at bugs.python.org
Tue Mar 29 02:22:27 CEST 2011


New submission from Raymond Hettinger <raymond.hettinger at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11707>
_______________________________________


More information about the New-bugs-announce mailing list