Commit 19582fb
committed
Use pg_VectorCoordsFromObj in _vector(2|3)_set
Rather than using pgVectorCompatible_Check and then PySequence_AsVectorCoords, which have duplicative operations, we can use pg_VectorCoordsFromObj to try to unpack directly for a speedup when processing sequence input.1 parent eaf3aa0 commit 19582fb
1 file changed
+4
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2340 | 2340 | | |
2341 | 2341 | | |
2342 | 2342 | | |
2343 | | - | |
2344 | | - | |
2345 | | - | |
2346 | | - | |
2347 | | - | |
2348 | | - | |
2349 | | - | |
| 2343 | + | |
| 2344 | + | |
2350 | 2345 | | |
2351 | 2346 | | |
2352 | 2347 | | |
| |||
2788 | 2783 | | |
2789 | 2784 | | |
2790 | 2785 | | |
2791 | | - | |
2792 | | - | |
2793 | | - | |
2794 | | - | |
2795 | | - | |
2796 | | - | |
2797 | | - | |
| 2786 | + | |
| 2787 | + | |
2798 | 2788 | | |
2799 | 2789 | | |
2800 | 2790 | | |
| |||
0 commit comments