-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See #24046: Reduce cost of Geometry#filterInsidePolygon when a primit…
…ive is a relation This was done by checking that the bounds of the polygon contain the bounds of the multipolygon ring before creating an area from the multipolygon ring. If the polygon does ''not'' contain the bounds of the ring, then at least part of the ring is outside the polygon, and thus is not inside the polygon. Measurements using validators at (57.5183581,-75.0512982),(57.2181217,-73.9434821): * CPU: -87% * Memory: -62% Please note that the test area is still very expensive in Geometry#filterInsideMultipolygon (note the `Multipolygon`). git-svn-id: https://josm.openstreetmap.de/svn/trunk@19272 0c6e7542-c601-0410-84e7-c038aed88b3b
- Loading branch information
taylor.smock
committed
Dec 19, 2024
1 parent
a7e02b1
commit df5e76b
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters