On Tue, 24 Mar 2026 13:12:46 GMT, Jeremy Wood <[email protected]> wrote:

> If we made n-many calls to 
> textPane.getAccessibleContext().getAccessibleText() then we'd add n-many 
> DocumentListeners to the HTMLDocument.
> 
> These listeners are very light, but even so: after thousands of listeners it 
> may start to degrade performance.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 0e57fb96
Author:    Jeremy Wood <[email protected]>
Committer: Phil Race <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/0e57fb963473f0589beaa84eb212423c2f059fd9
Stats:     204 lines in 2 files changed: 189 ins; 0 del; 15 mod

8380790: Each invocation of getAccessibleText() adds DocumentListener

Reviewed-by: prr, serb, kizune

-------------

PR: https://git.openjdk.org/jdk/pull/30401

Reply via email to