[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-04-22 Thread Aivar Annamaa
Aivar Annamaa added the comment: According to Tk people, the regression in performance was unavoidable and the solution is to avoid relying on update in a loop: https://core.tcl-lang.org/tk/tktview/f642d7c0f4 -- nosy: +Aivar.Annamaa ___ Python

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-04-04 Thread Thomas Wamm
Thomas Wamm added the comment: I have forked my TerraLunar graphics program to make a simpler more portable version, called "TerraLunar-tkbench.py" to facilitate testing of the tkinter stack for graphics performance. The project folder is at:

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-25 Thread Christopher A. Chavez
Change by Christopher A. Chavez : -- nosy: +chrstphrchvz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-24 Thread Thomas Wamm
Thomas Wamm added the comment: tkinter performance on Windows 10 looks okay, no obvious problems. Attached is a transcript showing bench.py results for Pythons 3.8.2, 3.9.2, and 3.10.0a6 on Windows 10 on a Dell laptop with an Intel i5-8250U CPU (medium good speed, a good comparison to Apple

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-24 Thread E. Paine
E. Paine added the comment: As this appears to be a Tk issue, I have created https://core.tcl-lang.org/tk/tktview/f642d7c0f4. -- ___ Python tracker ___

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-24 Thread E. Paine
E. Paine added the comment: > there appears to be a tk 8.6.11.1 release This was the version I used when testing Wish on both MacOS and Linux. -- ___ Python tracker ___

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-24 Thread E. Paine
E. Paine added the comment: The reduction in speed with later Tk versions does not seem to occur on Linux. See the below table (times are microseconds per iteration - tested using wish): ++--+--+ | Tk Version | clearing | not clearing |

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: One thing to look into: there appears to be a tk 8.6.11.1 release, I have no idea what changed in this micro release. -- ___ Python tracker

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: If this is a Tk issue we should report it in their bug tracker. I'm definitely against switching to an older version of Tk, the most recent release fixes a lot of problems with Tk on macOS. Correctness before performance. How bad is the performance

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-24 Thread Thomas Wamm
Thomas Wamm added the comment: I ran the bench.py and bench.tcl programs from E. Paine (epaine) on my M1 Mac Mini. Attached is a commented Terminal transcript. The tl;dr summary again is that Python 3.10.0a6 arm64 for Apple silicon is 3 to 100 times SLOWER than earlier pythons compiled for

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-23 Thread E. Paine
E. Paine added the comment: This *appears* to be a Tk issue. I ran a benchmark (see attached) which repeatedly performed canvas actions. The first test ("clearing") clears the canvas, creates a rectangle, then calls both `update` and `update_idletasks`. The second test ("not clearing") is

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-23 Thread Thomas Wamm
Thomas Wamm added the comment: Failed tkinter tests were already noted in Issue 42507. No mention of failures correlating with much slower testing. -- ___ Python tracker ___

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-23 Thread Thomas Wamm
Thomas Wamm added the comment: Summary: "poor tkinter performance correlates with failed self-tests" I'm an amateur hobbyist noobie programmer, so sophisticated testing is a challenge for me. I raised this issue because I noticed Python graphics thru tkinter is especially slow on MacOS,

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The result of help('modules') depends on Python version. Do you have any example which does not depend on Python version? Could you also run some pure Tcl/Tk demos to check whether the difference is in Tcl/Tk instead of the wrapper? -- nosy:

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-17 Thread Thomas Wamm
Thomas Wamm added the comment: I spent a few hours running numerous configurations (M1 Mac Mini, iMac24-2007, Win10 on i5-8250U, Raspberry Pi 4B, various Pythons from 3.7.3 to 3.10.0a6). It can get confusing. The primary interesting result is that Python 3.9.2 and 3.10.0a6 arm64 versions

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-16 Thread Ned Deily
Ned Deily added the comment: Thanks for submitting a very interesting issue! tkinter/Tk performance is not something we normally pay a lot of attention to. I did not attempt to run your application but I was able to see significant performance differences with your simple "help('modules')