Sending the full SVG document to the preview lets the preview handle all the compute, but is a big bottleneck because the webview postMessage() has to serialize the entire SVG document string.
As a perf boost the bytecount, SVG height and width should be computed from the main extension thread.
I can try throw something together for you..
Sending the full SVG document to the preview lets the preview handle all the compute, but is a big bottleneck because the webview
postMessage()
has to serialize the entire SVG document string.As a perf boost the bytecount, SVG height and width should be computed from the main extension thread. I can try throw something together for you..