shawnlaffan / Geo-ShapeFile

A perl library for reading shapefiles
https://metacpan.org/module/Geo::ShapeFile
2 stars 1 forks source link

speed up the get methods #10

Closed shawnlaffan closed 10 years ago

shawnlaffan commented 10 years ago

Profiling indicates that much of the time in the heavy usage subs such as Geo::Shape::contains_point is spent fetching the X and Y coordinate values.

The ->X and ->Y methods serve as both setters and getters, so there is overhead in checking which purpose is being served at each call. Adding direct getters will therefore accelerate processing.

shawnlaffan commented 10 years ago

Methods and docs are in place.

Closing issue.