- Notifications
You must be signed in to change notification settings - Fork5
Commitf806c19
committed
Simplify box_overlap computations.
Given the assumption that a box's high coordinates are not less than itslow coordinates, the tests in box_ov() are overly complicated and can bereduced to about half as much work. Since many other functions ingeo_ops.c rely on that assumption, there doesn't seem to be a good reasonnot to use it here.Per discussion of Alexander Korotkov's GiST fix, which was already usingthe simplified logic (in a non-fuzzy form, but the equivalence holds justas well for fuzzy).1 parent3c29b19 commitf806c19
1 file changed
+4
-9
lines changedLines changed: 4 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
558 | 558 |
| |
559 | 559 |
| |
560 | 560 |
| |
561 |
| - | |
562 |
| - | |
563 |
| - | |
564 |
| - | |
565 |
| - | |
566 |
| - | |
567 |
| - | |
568 |
| - | |
569 |
| - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
570 | 565 |
| |
571 | 566 |
| |
572 | 567 |
| |
|
0 commit comments
Comments
(0)