Overview
| Artifact ID: | 3ed8edb0f10865c5b84a9ad88960f09b9e4e6225 |
|---|---|
| Ticket: | 0520d17284500573d7c46aa88e0c6b4ebc9b6a02
Exploding runtime with growing list of after idle events |
| User & Date: | sebres on 2017-01-27 01:33:42 |
Changes
- icomment:
I know already this issue (or the same by comparable one with usage of `after 0` instead of `after idle`). And I've a branch where it is fixed, would try to port it in tcl-core. BTW. It's currently possible as replacement for this to use the thread::send -async to self (needed thread package). I known it not really the same as after idle, but... So JFYI (hope it helps): ``` package require Thread proc stack_after_idle {howmuch} { time { thread::send -async [thread::id] { # Do something. set foo bar } } $howmuch } foreach howmuch { 10000 20000 40000 60000 } { stack_after_idle $howmuch set start [clock milliseconds] update puts "$howmuch: [expr {[clock milliseconds] - $start}]" } ``` You'll see it has a linear execution time: 10000: 11 20000: 22 40000: 44 60000: 66 - login: "sebres"
- mimetype: "text/plain"