This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author epaine
Recipients epaine, ned.deily, ronaldoussoren, serhiy.storchaka, thomaswamm
Date 2021-03-23.14:55:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616511317.7.0.445918483539.issue43511@roundup.psfhosted.org>
In-reply-to
Content
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 the same as the above but did not clear the canvas (causing rectangles to be drawn over each other). Here is a table of the results (times are per iteration in milliseconds):

+------------+-------------------------+-------------------------+
| Tk Version | Python                  | Wish                    |
|            +----------+--------------+----------+--------------+
|            | clearing | not clearing | clearing | not clearing |
+============+==========+==============+==========+==============+
| 8.6.8      | 6.6      | 41.4         | 4.2      | 16.2         |
+------------+----------+--------------+----------+--------------+
| 8.6.11     | 37.0     | 37.1         | 36.1     | 36.1         |
+------------+----------+--------------+----------+--------------+

A few notes:
- These were performed on a slow machine and results could be influenced by background CPU usage fluctuations
- Because it is a slow computer, I limited the iterations to just 1000 per test.
- Python version was 3.9.2
- Wish 8.6.8 was installed using an ActiveTcl binary whereas 8.6.11 was installed through homebrew
History
Date User Action Args
2021-03-23 14:55:17epainesetrecipients: + epaine, ronaldoussoren, ned.deily, serhiy.storchaka, thomaswamm
2021-03-23 14:55:17epainesetmessageid: <1616511317.7.0.445918483539.issue43511@roundup.psfhosted.org>
2021-03-23 14:55:17epainelinkissue43511 messages
2021-03-23 14:55:17epainecreate