This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients lemburg, pitrou, rhettinger
Date 2008-12-15.14:41:24
SpamBayes Score 1.065457e-06
Marked as misclassified No
Message-id <49466C92.4060409@egenix.com>
In-reply-to <1229180913.94.0.963227199765.issue3106@psf.upfronthosting.co.za>
Content
On 2008-12-13 16:08, Antoine Pitrou wrote:
> Antoine Pitrou <pitrou@free.fr> added the comment:
> 
> Here is a new patch without any dispatch shortcut in ceval.c, just
> optimizations in unicodeobject.c and longobject.c. Net result on pybench:
> 
> Test                             minimum run-time        average  run-time
>                                  this    other   diff    this    other 
>  diff
> -------------------------------------------------------------------------------
>                  CompareFloats:   166ms   170ms   -2.3%   169ms   174ms
>   -2.8%
>          CompareFloatsIntegers:   230ms   231ms   -0.7%   233ms   231ms
>   +0.8%
>                CompareIntegers:   247ms   270ms   -8.7%   248ms   272ms
>   -9.0%
>         CompareInternedStrings:   196ms   254ms  -22.7%   197ms   255ms
>  -22.7%
>                   CompareLongs:   143ms   158ms   -9.0%   143ms   158ms
>   -9.3%
>                 CompareStrings:   156ms   168ms   -7.4%   157ms   169ms
>   -7.2%
> -------------------------------------------------------------------------------
> Totals:                          1139ms  1252ms   -9.1%  1148ms  1260ms
>   -8.9%
> 
> 
> The patch seems fairly uncontroversial to me, I'll commit it soon if
> there's no opposition.

Why have you removed the complete error handling section in
PyUnicode_RichCompare() ?

> Added file: http://bugs.python.org/file12341/cmps5.patch
History
Date User Action Args
2008-12-15 14:41:26lemburgsetrecipients: + lemburg, rhettinger, pitrou
2008-12-15 14:41:25lemburglinkissue3106 messages
2008-12-15 14:41:24lemburgcreate