txml performance optimization