jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.35k stars 7.67k forks source link

Zoom performance improvements #4607

Open FarSeeing opened 2 months ago

FarSeeing commented 2 months ago

Is your feature request related to a problem? Please describe. So far the zoom perfomance for the large diagrams (hundreds or even thousands of elements) is not perfect. This issue is just an attempt to analyze how this could be improved.

Describe the solution you'd like The main blocker here is the re-painting of every element. Probably this could be improved by splitting the sync code to the async calls via the setTimeout/requestAnimationFrame or even changing the elements attributes instead of fully re-creating those elemtns but thiat is a long walk. Here are some points I see as hangings fruits so they're worth checking:

Describe alternatives you've considered

Additional context