Tk Source Code

Check-in [4b3b840a]
Login

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

Overview
Comment:[1348333] Create many text widgets causes idle event overload
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: 4b3b840a41badb6a4e6b57b354feaf2435c9a48f174026461dfc4d85d14b9b3a
User & Date: oehhar 2026-10-22 17:32:35.816
References
2026-10-23
13:39
Fix [1348333fff]: with many text widgets, the asynchronous line metrics update polled with 1 ms timers while a redisplay was pending, which starved the idle handlers, including the redisplay itself. Now the update waits without a timer, and DisplayText() restarts it when the redisplay is no longer pending. Unlike the backed-out [4b3b840a41], which waited in a when-idle handler, a nested [update] during the redisplay (as in textWind-17.10) cannot loop. Test textDisp-41.1. check-in: 009b2c8f user: serhiy.storchaka tags: text-metrics-after-redraw
12:47
Backout [4b3b840a41], Because it creates a hang in textWind-17.10. See: [1348333] check-in: 00ba90d1 user: jan.nijtmans tags: trunk, main
2026-10-22
17:40 • Ticket [1348333f] 8.5 text widget creates to many timers status still Open with 9 other changes artifact: 130db554 user: oehhar
Context
2026-10-23
12:47
Backout [4b3b840a41], Because it creates a hang in textWind-17.10. See: [1348333] check-in: 00ba90d1 user: jan.nijtmans tags: trunk, main
2026-10-22
18:23
Fix for [853414]: Document undefined bindings check-in: fb166f9f user: csaba tags: trunk, main
17:32
[1348333] Create many text widgets causes idle event overload check-in: 4b3b840a user: oehhar tags: trunk, main
15:14
Fix for [911951]: Menu geometry info wrong if cascaded check-in: 51a8eab8 user: csaba tags: trunk, main
2026-10-19
17:09
Merge main. Test textDisp-40.1 renumbered to textDisp-41.1. closed check-in: 15457ad5 user: serhiy.storchaka tags: text-metrics-idle-wait
Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.md.
Changes to generic/tkTextDisp.c.
Changes to tests/textDisp.test.