On Wed, 11 Nov 2026 16:34:34 GMT, Azad Abdulov <[email protected]> wrote:
> Cuts shaping context to the actually needed by HarfBuzz to reduce unnecessary > copying. See provided benchmark that grows faster than linear without the fix > and shows linear growth with this change. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). src/java.desktop/share/classes/sun/font/SunLayoutEngine.java line 70: > 68: > 69: // HarfBuzz keeps up to 5 code points (at most 10 UTF-16 chars) of > context on each side. > 70: // See hb_buffer_t::CONTEXT_LENGTH in hb-buffer.hh https://github.com/harfbuzz/harfbuzz/blob/316e8022228475d7cf35c2b08f6acd5ebf93da57/src/hb-buffer.hh#L109 ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33853#discussion_r4540848703
