|
From: <no...@tc...> - 2025-10-23 16:33:44
|
Automated mail by fx, on behalf of no...@tc... Ticket Change [5a808db250278957e6f503ded6d40a0f6e4a2c57bd874ff684a1d31a233b179c] ["update idletasks" command is about 8 times slower] By erikleunissen For Tk On 2025-10-23T16:24:55.111 Details https://core.tcl-lang.org/tk/tinfo?name=5a808db250278957e6f503ded6d40a0f6e4a2c57bd874ff684a1d31a233b179c Ticket https://core.tcl-lang.org/tk/tktview/7168473e104fe406d4302c69605ab268ea380d4f Changed Fields icomment: I'm getting the opposite effect: on 9.1, the command is substantially faster than on 8.6: % set tcl_patchLevel 8.6.17 % time {update idletasks} 1000 5.796 microseconds per iteration % set tcl_patchLevel 9.1a0 % time {update idletasks} 1000 0.659 microseconds per iteration Several things to check for: * the invocation of the time command that you used, results in just a single run. That's not reliable enough. In the exercise above I'm using 1000 runs. * there are two different variations of the "update" command: - the Tcl update command (without Tk loaded) - the Tk update command (package Tk loaded) The latter is considerable slower than the former. Which one did you use for the comparison? login: erikleunissen ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl-lang.org/ ------------------------------------------------------------ |