Minor SVG optimizations and big text doc optimization

50->20 second improvement on a particular ARM-based platform.