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

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

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b18

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: