performance improvements for Ink renderer