phayes / geoPHP

Advanced geometry operations in PHP
https://geophp.net
Other
861 stars 262 forks source link

Reducing memory usage of Point #103

Closed BathoryPeter closed 8 years ago

BathoryPeter commented 9 years ago

To reduce memory usage I simply moved coordinates from array to individual variables. In a test case with 100 000 random Points memory usage decreased from 97 MB to 52 MB and runtime was also slightly better.

phayes commented 9 years ago

This is awesome. However, because $coords is public this breaking change this will have to go into a 2.x release.

Parking this for now

BathoryPeter commented 8 years ago

Fixed in #125 as well.