In relation to this topic, I’m also noticing serious performance issues when displaying search matches highlighting on an Edit Tab with a lot of content, serious enough for me to add an option to deactivate highlighting, and even considering to remove it altogether.
In that case, its because everything is calculated relatively to the active glyphs, so basically every action in the Edit tab triggers recalculation. I feel that it would have been so much more straightforward, both to code and to process if I had a callback that allowed me to draw stuff with absolute positioning in the Edit view.
edit: I realise that changing the origin point from the active glyph to another place, doesn’t change the fact that it would need to recalculate positions on zoom/scroll/content change, but my guess would be that being able to calculate from a constant origin point (ex: 0,0 from first glyph) would result in simpler code and better performances?
Is that something I can do with a reporter plugin, and, would it be a good idea to implement it that way, and to access that reporter plugin from my palette plugin? (But even if this is possible, that would mean two plugins for a user to access one functionality and that’s not ideal either…)