Requires Python 3.10+. optimize_bytes(svg, options=None) bytes in, UTF-8 bytes out. optimize_path(path, options=None) Read from a filesystem path. optimize_async(svg, options=None) await-able wrapper ...
The dominant win is SVG generation: Rust replaces thousands of Python svgwrite object allocations and DOM traversals with direct String building and pre-computed layout arithmetic.