peterstace / simplefeatures

Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification
MIT License
127 stars 19 forks source link

Optimise `LineString` `Envelope` method #557

Closed peterstace closed 10 months ago

peterstace commented 11 months ago

Description

Optimises LineString's Envelope method by using the Sequence's Envelope method instead of iterating over the sequence and extending the envelope point by point.

Check List

Have you:

Related Issue

Benchmark Results

NOTE: results are measured between this branch and the commit of master before https://github.com/peterstace/simplefeatures/pull/556 was merged.

Results show small improvements for operations involving envelopes (which is great, since all I was after was to eliminate the regressions caused by #556).

results_0.1s.txt