Tk Source Code

Check-in [2b118379]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [290ce5f460]: Tk performance on X11 with forwarding decreased in 8.6.11.

Since [7f20966df9], text measurement with Xft is wrapped in an X error handler, and every tenth deletion of an error handler did a round trip with the X server (XSync) to catch errors for the outstanding requests. Skip it if no request was sent while the handler was active, so that no error can come for it. This removes most round trips when creating many widgets with text, e.g. 1200 -> 260 for a grid of 400 ttk::buttons without bidi.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | x11-error-handler-sync
Files: files | file ages | folders
SHA3-256: 2b118379ee933d59f7a1e746925946c685e43edc3f50621feed3cc10cef5ad42
User & Date: serhiy.storchaka 2026-10-02 14:55:30.738
Context
2026-10-15
15:09
Fix [290ce5]: Tk performance regression on X11 check-in: 3d1d80d0 user: jan.nijtmans tags: trunk, main
2026-10-02
14:55
Fix [290ce5f460]: Tk performance on X11 with forwarding decreased in 8.6.11.

Since [7f20966df9], text measurement with Xft is wrapped in an X error handler, and every tenth deletion of an error handler did a round trip with the X server (XSync) to catch errors for the outstanding requests. Skip it if no request was sent while the handler was active, so that no error can come for it. This removes most round trips when creating many widgets with text, e.g. 1200 -> 260 for a grid of 400 ttk::buttons without bidi. closed check-in: 2b118379 user: serhiy.storchaka tags: x11-error-handler-sync

06:11
Fix [2b6398e983]: leak of the -locale value of entry, spinbox and text. check-in: 359b0a55 user: nab tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkError.c.