Parallel and spatial optimizations for diagram element picking to support larger amounts of diagram elements
- stream().parallel() can be used to improve performance of picking easily, although it can also be used to easily kill the CPU with large amounts of data and brute force algorithms
- scene graph has the spatial R-tree structure for optimizing rendering which can be used to optimize the amount of picked elements based on the current view transform and control bounds. However, the R-tree does not support all different types of elements well so care must be taken to ensure there are no regressions when this optimization is enabled.
Edited by Tuukka Lehtonen