Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8220231

Cache HarfBuzz face object for same font's text layout calls

XMLWordPrintable

    • 2d
    • b18

        Currently each text layout operation includes the creation of Harfbuzz face object (hb_face_t). By creating it
        only once per Font2D instance, a notable (couple of times) speedup of repeated layout operations for the same font can be achieved.
        Harfbuzz face object is claimed to be 'threadsafe beyond construction'
        (https://lists.freedesktop.org/archives/harfbuzz/2009-August/000359.html), so there shouldn't be a problem with
        concurrent layout operations.

              dbatrak Dmitry Batrak
              dbatrak Dmitry Batrak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: