[Python-checkins] cpython: Issue #26288: Fix comment
yury.selivanov
python-checkins at python.org
Sat Feb 6 12:21:32 EST 2016
https://hg.python.org/cpython/rev/cfb77ccdc23a
changeset: 100171:cfb77ccdc23a
user: Yury Selivanov <yselivanov at sprymix.com>
date: Sat Feb 06 12:21:33 2016 -0500
summary:
Issue #26288: Fix comment
files:
Objects/longobject.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Objects/longobject.c b/Objects/longobject.c
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -2770,9 +2770,9 @@
return -1.0;
}
if (Py_ABS(Py_SIZE(v)) <= 1) {
- /* Fast path; single digit will always fit decimal.
- This improves performance of FP/long operations by at
- least 20%. This is even visible on macro-benchmarks.
+ /* Fast path; single digit long (31 bits) will cast safely
+ to double. This improves performance of FP/long operations
+ by 20%.
*/
return (double)MEDIUM_VALUE((PyLongObject *)v);
}
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list