STRtree should be thread-safe (synchronized for building and stateless for querying).
If you see any issues with this please report them to this list. On Fri, Dec 11, 2015 at 11:00 AM, Houde, Jonathan <[email protected]> wrote: > Hi, > > I have a use case for JTS STRtree > > > http://www.vividsolutions.com/jts/javadoc/com/vividsolutions/jts/index/strtree/STRtree.html#query(com.vividsolutions.jts.geom.Envelope) > > which would be loaded once at the beginning of the process, but which > would then need to be queried by multiple threads. > > I’d like to confirm whether or not the latest version of the query > operation is thread-safe and actually support querying from multiple > thread, or is synchronized and would actually not leverage more than one > CPU anyways. > > I’ve seen this old post: > > > http://jts-topo-suite-user.narkive.com/bR8F0KZH/querying-strtree-from-multiple-threads > > but I’m not clear on the conclusion and if it is outdated anyways. > > If it does not support multithreading any idea on work around, beside > creating multiple instance of the tree itself? > > > > Thanks, > > Jonathan > > > > > >
------------------------------------------------------------------------------
_______________________________________________ Jts-topo-suite-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
