- Notifications
You must be signed in to change notification settings - Fork28
Commiteee50a8
committed
PL/Python: Simplify PLyLong_FromInt64
We don't actually need two code paths, one for 32 bits and one for 64bits. Since the existing code already assumed that "long long" isavailable, we can just use PyLong_FromLongLong() for 64 bits as well.In Python 2.5 and later, PyLong_FromLong() and PyLong_FromLongLong() usethe same code, so there will be no difference for 64-bit platforms. InPython 2.4, the code is different, but performance testing showed nonoticeable difference in PL/Python, and that Python version is ancientanyway.Discussion:https://www.postgresql.org/message-id/0a02203c-e157-55b2-464e-6087066a1849@2ndquadrant.com1 parent2f17844 commiteee50a8
1 file changed
+1
-5
lines changedLines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
618 | 618 |
| |
619 | 619 |
| |
620 | 620 |
| |
621 |
| - | |
622 |
| - | |
623 |
| - | |
624 |
| - | |
625 |
| - | |
| 621 | + | |
626 | 622 |
| |
627 | 623 |
| |
628 | 624 |
| |
|
0 commit comments
Comments
(0)