Integrated: 8305578: X11GraphicsDevice.pGetBounds() is slow in remote X11 sessions

Maxim Kartashev mkartashev at openjdk.org
Wed May 24 12:52:07 UTC 2023


On Wed, 5 Apr 2023 08:19:50 GMT, Maxim Kartashev <mkartashev at openjdk.org> wrote:

> Getting bounds of a `GraphicsDevice` and insets of a screen are fairly frequent operations. When working over the network (remote X session), those can take several *seconds* to complete, introducing repeated freezes even when typing in an editor feels only slightly sluggish.
> 
> On the other hand, neither bounds nor insets change very often - if at all - during the lifetime of an application. So caching their values seems like a natural solution to the problem. The caches need to be reset only when there's a possibility of change in the screens configuration.
> 
> A similar patch has been living in [JetBrains Runtime](https://github.com/JetBrains/JetBrainsRuntime/) for well over a year.

This pull request has now been integrated.

Changeset: d7245f70
Author:    Maxim Kartashev <mkartashev at openjdk.org>
Committer: Alexey Ushakov <avu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d7245f70e7bac1236bbcdcd9b25346ca22ab8bb2
Stats:     59 lines in 2 files changed: 54 ins; 1 del; 4 mod

8305578: X11GraphicsDevice.pGetBounds() is slow in remote X11 sessions

Reviewed-by: avu, serb

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

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



More information about the client-libs-dev mailing list