In course of adding a Label annotation (the current PR is at: Add label annotation by canavandl · Pull Request #3956 · bokeh/bokeh · GitHub), I generated a couple of questions about the current annotations implementation. Note: the distinction between glyphs and annotations is that annotations don’t support hit-testing and aren’t selectable.
Namely, is it worth vectorizing the implementations of the current Box and Span annotations?
Currently, each annotation is individually created (here’s an example from the User Guide: Plotting with basic glyphs — Bokeh 2.4.2 Documentation). Are there cases and/or visualizations where the user would want to create and manage such a large number of annotations that the non-vectorized implementation would be a problem?
If box and span annotations are acceptable as is, would having vectorized Label annotations be a confusing api difference?
