lambgeo / docker-lambda

AWS Lambda friendly GDAL Docker images and AWS Lambda layer
MIT License
124 stars 18 forks source link

GDAL 3 performance issue #2

Closed vincentsarago closed 3 years ago

vincentsarago commented 4 years ago

while https://github.com/RemotePixel/amazonlinux/pull/17 fixed most of it there is still a huge (~100ms) difference between gdal 2 and 3

This was experienced by @kylebarron in https://github.com/developmentseed/cogeo-mosaic-tiler/issues/3

# GDAL 3.0
bash-4.2# time echo "0 0" | cs2cs +proj=longlat +datum=WGS84 +to +init=epsg:2163
9473741.42  1181205.06 0.00

real    0m0.132s
user    0m0.120s
sys 0m0.010s

# GDAL 2.4
bash-4.2# time echo "0 0" | cs2cs +proj=longlat +datum=WGS84 +to +init=epsg:2163
9473741.42  1181205.06 0.00

real    0m0.008s
user    0m0.000s
sys 0m0.000s
vincentsarago commented 3 years ago

with latest 3.1

time echo "0 0" | cs2cs +proj=longlat +datum=WGS84 +to +init=epsg:2163
9473741.42      1181205.06 0.00

real    0m0.040s
user    0m0.022s
sys     0m0.018s

this is still slower than with GDAL 2 but there is no work around