<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Dear community, I hope some of you might be of help here.</div><div class=""><br class=""></div><div class="">For weeks I’ve been trying to build CENTOS docker image (for AWS Lambda) for GDAL 3 + PROJ 6 but I stumbled into a strange behavior making my processes a couple time slower than with gdal 2. I’m using those images for dynamic tiling (warping + cropping) so my guess it there is something involving PROJ 6 here (everything works fine with gdal2.4 + proj 5. The weird things is I cannot reproduce the behavior outside my centos container (works fine with Alpine).</div><div class=""><br class=""></div><div class="">The full discovery can be seen in <a href="https://github.com/RemotePixel/amazonlinux/issues/10" class="">https://github.com/RemotePixel/amazonlinux/issues/10</a> and <a href="https://github.com/RemotePixel/amazonlinux/issues/16" class="">https://github.com/RemotePixel/amazonlinux/issues/16</a>. </div><div class=""><br class=""></div><div class="">The dockerfile can be found here <a href="https://github.com/RemotePixel/amazonlinux/blob/master/base/gdal3.0/Dockerfile" class="">https://github.com/RemotePixel/amazonlinux/blob/master/base/gdal3.0/Dockerfile</a></div><div class=""><br class=""></div><div class="">The logs (PROJ or GDAL) don’t tell anything, they are almost similar. The only notable difference is :</div><div class=""><div style="background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class="">```</div><div style="background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class=""># CENTOS</div><div style="background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class="">GDAL: GDALDriver::Create(GTiff,out.tif,256,256,1,UInt16,<b class="">(nil)</b>)</div></div><div style="background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class=""># ALPINE </div><div style="background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class=""><div style="line-height: 18px;" class="">GDAL: GDALDriver::Create(GTiff,out.tif,256,256,1,UInt16,<b class="">0</b>)</div><div style="line-height: 18px;" class="">```</div></div><div class=""><br class=""></div><div class="">Here is an example showing the logs of a gdalwarp command (keeping only line taking more then 100ms). </div><div class=""><br class=""></div><div class=""><pre style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; word-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: rgb(246, 248, 250); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;" class=""><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" class=""><span style="caret-color: rgb(36, 41, 46); font-size: 11.899999618530273px;" class="">CPL_TIMESTAMP=ONE CPL_DEBUG=ON GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR gdalwarp -q -te -11036283.891926888 10331840.239250703 -10958012.374962866 10410111.756214723-t_srs EPSG:3857 -ts 256 256 -r bilinear -overwrite /vsicurl/<a href="https://s3.amazonaws.com/opendata.remotepixel.ca/bench_tiler/LC08_L1TP_040013_20191014_20191029_01_T1_B4.tif" class="">https://s3.amazonaws.com/opendata.remotepixel.ca/bench_tiler/LC08_L1TP_040013_20191014_20191029_01_T1_B4.tif</a> out.tif</span></font><span style="caret-color: rgb(36, 41, 46); color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 11.899999618530273px;" class="">
</span></pre></div><div class="">Note: time delta (column 2) is calculated between line and line+1 (meaning that delta assigned for  `GDAL : computing areas …` correspond to time spent somewhere between the end of <span style="caret-color: rgb(0, 92, 197); color: rgb(0, 92, 197); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12.000000953674316px; white-space: pre; background-color: rgb(255, 255, 255);" class="">GDALComputeAreaOfInterest</span>  and `<span style="caret-color: rgb(0, 92, 197); color: rgb(0, 92, 197); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12.000000953674316px; white-space: pre; background-color: rgb(255, 251, 221);" class="">GDALWarpCreateOutput</span>` <a href="https://github.com/OSGeo/gdal/blob/release/3.0/gdal/apps/gdalwarp_lib.cpp#L945-L1040" class="">https://github.com/OSGeo/gdal/blob/release/3.0/gdal/apps/gdalwarp_lib.cpp#L945-L1040</a></div><div class=""><br class=""></div><div class=""><pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 11.899999618530273px; margin-top: 0px; margin-bottom: 16px; word-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: rgb(246, 248, 250); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; caret-color: rgb(36, 41, 46); color: rgb(36, 41, 46);" class=""><code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; padding: 0px; margin: 0px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal;" class="">GDAL 3.0
17:26:43.314265 264ms   HTTP: libcurl/7.61.1 OpenSSL/1.0.2k zlib/1.2.8 libidn2/0.16 libpsl/0.6.2 (+libicu/50.1.2) libssh2/1.4.2 nghttp2/1.21.1
17:26:43.662722 671ms   GDAL: Computing area of interest: -103.586, 65.7283, -97.4556, 68.0874
17:26:44.460977 625ms   GTiff: Opened 134x135 overview.
17:26:45.088925 588ms   GDAL: Computing area of interest: -103.586, 65.7283, -97.4556, 68.0874
17:26:45.676688 189ms   VSICURL: Downloading 2145148-2175608 (<a href="https://s3.amazonaws.com/opendata.remotepixel.ca/bench_tiler/LC08_L1TP_040013_20191014_20191029_01_T1_B4.tif" class="">https://s3.amazonaws.com/opendata.remotepixel.ca/bench_tiler/LC08_L1TP_040013_20191014_20191029_01_T1_B4.tif</a>)...
17:26:45.870161 124ms   GDAL: GDALWarpKernel()::GWKRealCase() Src=1544,201,252x252 Dst=0,0,256x256


GDAL 3.0 Alpine
17:42:55.857475 284ms   HTTP: libcurl/7.65.1 OpenSSL/1.1.1c zlib/1.2.11 nghttp2/1.38.0
17:42:56.273597 43ms     GDAL: Computing area of interest: -103.586, 65.7283, -97.4556, 68.0874
17:42:56.421772 15ms        GTiff: Opened 134x135 overview.
17:42:56.440615 16ms     GDAL: Computing area of interest: -103.586, 65.7283, -97.4556, 68.0874
17:42:56.456941 210ms   VSICURL: Downloading 2145148-2175608 (<a href="https://s3.amazonaws.com/opendata.remotepixel.ca/bench_tiler/LC08_L1TP_040013_20191014_20191029_01_T1_B4.tif" class="">https://s3.amazonaws.com/opendata.remotepixel.ca/bench_tiler/LC08_L1TP_040013_20191014_20191029_01_T1_B4.tif</a>)...
17:42:56.725692 44ms        GDAL: GDALWarpKernel()::GWKRealCase() Src=1544,201,252x252 Dst=0,0,256x256
</code></pre></div><div class=""><code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; padding: 0px; margin: 0px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal;" class="">Full logs: <a href="https://gist.github.com/vincentsarago/2c55d5154d352f10e85d09fe9008e365" class="">https://gist.github.com/vincentsarago/2c55d5154d352f10e85d09fe9008e365</a></code></div><div class=""><code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; padding: 0px; margin: 0px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal;" class=""><br class=""></code></div><div class=""><code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; padding: 0px; margin: 0px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal;" class=""><span style="font-family: Helvetica;" class="">The main time difference are just after `</span><span style="caret-color: rgb(111, 66, 193); color: rgb(111, 66, 193); font-size: 12.000000953674316px; white-space: pre; background-color: rgb(255, 255, 255);" class="">GDALComputeAreaOfInterest` (</span></code><font color="#6f42c1" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" class=""><span style="caret-color: rgb(111, 66, 193); font-size: 12.000000953674316px; white-space: pre;" class=""><a href="https://github.com/OSGeo/gdal/blob/release/3.0/gdal/apps/gdalwarp_lib.cpp#L930-L939" class="">https://github.com/OSGeo/gdal/blob/release/3.0/gdal/apps/gdalwarp_lib.cpp#L930-L939</a></span></font> and takes about 15 times more time in amazonlinux in comp)</div><div class="">arison to alpine </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I’m looking for advice for deeper debuting or for knowledge about compilation/dependencies of GDA/PROJ for centos. </div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Vincent </div></body></html>