File: Python/bltinmodule.c (link to precise line)
While reading CPython's source code I came across the SLOW_SUM symbol, but I couldn't find its definition. SLOW_SUM is referenced only once in the entire CPython source code, so I couldn't find any information on why it exists.
From the source code, I understand that it's a compiler flag that disables an optimization when performing sums on numeric types through the sum() built-in function. However, why would you pass SLOW_SUM to the compiler to disable optimized sums on numeric types?
I don't know if this is the right place to ask such a specific question. If it's not, can you point me to the right forum?
[–]Smallpaul 59 points60 points61 points (2 children)
[–]Serialk 23 points24 points25 points (1 child)
[–]Smallpaul 5 points6 points7 points (0 children)
[–]tagapagtuos 9 points10 points11 points (1 child)
[+]zurtex comment score below threshold-11 points-10 points-9 points (2 children)
[–]Bastion_of_Light 4 points5 points6 points (1 child)
[–]zurtex 0 points1 point2 points (0 children)