|
From: <no...@tc...> - 2025-10-24 16:01:12
|
Automated mail by fx, on behalf of no...@tc... Ticket Change [b53b9094a9f6788ae162c7ff2d27b95f077a7d3ed0038120c4f0de7bc20720d7] ["update idletasks" command is about 8 times slower] By achirous For Tk On 2025-10-24T13:27:18.864 Details https://core.tcl-lang.org/tk/tinfo?name=b53b9094a9f6788ae162c7ff2d27b95f077a7d3ed0038120c4f0de7bc20720d7 Ticket https://core.tcl-lang.org/tk/tktview/7168473e104fe406d4302c69605ab268ea380d4f Changed Fields icomment: Sorry my bad, I should have given a bit more context. This is happening with the tk update command after simply adding a few widgets to the window. I have attached a simple wish app that adds some random widgets and times the update idletasks command each time. When I run this with version 8.6.17 I get the following output after adding 5 random widgets. First update idletasks: 3 update idletasks ->> After adding TLabel widget ->> 38 update idletasks ->> After adding TCheckbutton widget ->> 100 update idletasks ->> After adding TProgressbar widget ->> 38 update idletasks ->> After adding TCheckbutton widget ->> 13 update idletasks ->> After adding TRadiobutton widget ->> 33 However when I run it with version 9.0.2 and do the same I get the following: First update idletasks: 2 update idletasks ->> After adding TEntry widget ->> 5 update idletasks ->> After adding TProgressbar widget ->> 32496 update idletasks ->> After adding TLabel widget ->> 22307 update idletasks ->> After adding Text widget ->> 22224 update idletasks ->> After adding TEntry widget ->> 23850 Let me know if you would maybe prefer for me to copy and paste here the raw code that I have in "update_bench.tcl" for security reasons. login: achirous ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl-lang.org/ ------------------------------------------------------------ |