You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They are currently using a field to store a point and a rectangle JTS geometries used for containment tests.
This is done to avoid generating a lot of garbage in case the contains methods are called repeatedly (which some operation does), however this makes the class stateful and prone to multithreading problems (with multiple threads all modifying the same point and polygon objects).
This commit fixes the erroenous behavior, but at a high performance price: aaime@20330e5
Some other approach should probably be used... like a pool of these objects (but we'd need a very lightweight one), thread locals (but how to clean them up?) or... dunno, something else.
The text was updated successfully, but these errors were encountered:
They are currently using a field to store a point and a rectangle JTS geometries used for containment tests.
This is done to avoid generating a lot of garbage in case the contains methods are called repeatedly (which some operation does), however this makes the class stateful and prone to multithreading problems (with multiple threads all modifying the same point and polygon objects).
This commit fixes the erroenous behavior, but at a high performance price:
aaime@20330e5
Some other approach should probably be used... like a pool of these objects (but we'd need a very lightweight one), thread locals (but how to clean them up?) or... dunno, something else.
The text was updated successfully, but these errors were encountered: