vitaliymaz / vscode-svg-previewer

Vscode SVG Previewer
22 stars 4 forks source link

Bottleneck in SVG data implementation #70

Closed zm-cttae closed 11 months ago

zm-cttae commented 1 year ago

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..