summaryrefslogtreecommitdiff
path: root/config.h.win32.in
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-07-07 16:42:03 +0200
committerBehdad Esfahbod <behdad@behdad.org>2018-07-07 17:26:17 +0200
commit9f65356b7b473b607bea0510709a4d7330be9c9a (patch)
treee31da9a93b76ba50fcce6e711a756e767158c466 /config.h.win32.in
parentcdb88930da73bdbeb0e6167825121435d7e5e99f (diff)
downloadpango-9f65356b7b473b607bea0510709a4d7330be9c9a.tar.gz
Short-circuit FriBidi call if paragraph is unidirectional
This was included in Pango's mini-fribidi but removed when we moved to external FriBidi. Most apps create PangoLayout twice to show text, one to measure, one to render. Each PangoLayout shaping apparently calls FriBidi twice (TODO: figure out why and fix); FriBidi creates two runs per work. So that's eight malloc calls per word to show text. That's a lot. With this optimization that completely disappears for most text. We should make an API in FriBidi out of this. Reported by Christian Hergert.
Diffstat (limited to 'config.h.win32.in')
0 files changed, 0 insertions, 0 deletions