output: Cache the script ltr versus rtl direction.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 1 Jan 2019 05:50:16 +0000 (21:50 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 1 Jan 2019 06:19:40 +0000 (22:19 -0800)
commitf571c9bfcafa6b910985372219a4656017f51700
treeb21b188584c4e98f4dbe469b73fa968655754c53
parent1058fc673a7859c417004327f7e73d1106b26960
output: Cache the script ltr versus rtl direction.

A profiling run showed that about 10% of the rendering time was occupied
with repeated calls to render_direction_rtl().  This caches the result.
src/output/ascii.c
src/output/cairo.c
src/output/render.c
src/output/render.h