As mentioned at #23 (comment) , adding -DCMAKE_BUILD_TYPE=Release to the makefile results in 2x/3x improvements as per @Komzpa 's benchmarks at uber/h3#326
Current
kom@nucat:~/proj/h3/build$ bin/benchmarkH3Api
-- geoToH3: 1.187343 microseconds per iteration (10000 iterations)
-- h3ToGeo: 0.796665 microseconds per iteration (10000 iterations)
-- h3ToGeoBoundary: 2.219408 microseconds per iteration (10000 iterations)
With Release flag
kom@nucat:~/proj/h3/build$ bin/benchmarkH3Api
-- geoToH3: 0.517386 microseconds per iteration (10000 iterations)
-- h3ToGeo: 0.295042 microseconds per iteration (10000 iterations)
-- h3ToGeoBoundary: 1.496694 microseconds per iteration (10000 iterations)
Latest build v3.6.2 does not use this flag
As mentioned at #23 (comment) , adding
-DCMAKE_BUILD_TYPE=Releaseto the makefile results in 2x/3x improvements as per @Komzpa 's benchmarks at uber/h3#326Current
With Release flag
Latest build v3.6.2 does not use this flag