Hello Georges and all

The following article, "How Good Are Modern Spatial Libraries?" (published November 2020) does a comparison between JTS, GEOS and other libraries:

   https://doi.org/10.1007/s41019-020-00147-9

Note: I do not know why the language restriction, but if it is for performance, the reality can be counter-intuitive. GEOS is a port of JTS library from Java to C. So it should be the same algorithms, only in a different language. But according benchmarks in above-cited articles, GEOS is actually… slightly slower than JTS.

    Martin

P.S.: On GEOS benchmark results: the authors attribute that to excessive memory allocations. The malloc and free functions in C/C++ are slower than memory allocation in Java. With a garbage collector, only surviving objects have a cost. In a program where e.g. 90% of objects die young, garbage collector can be more performant than explicit memory allocation (I also saw a benchmark from IBM a long time ago doing similar demonstration with the grep program).

Reply via email to