| Ticket UUID: | 1191258 | |||
| Title: | text/entry become very inefficients with long lines | |||
| Type: | Bug | Version: | obsolete: 8.4.9 | |
| Submitter: | nobody | Created on: | 2005-04-27 19:41:17 | |
| Subsystem: | 18. [text] | Assigned To: | nobody | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Open | Last Modified: | 2023-01-08 19:34:55 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
After Tcl/Tk 8.3.3 text and entry widgeds become very inefficients working with long single lines, (without end of lines) e.g this is very inefficient with 8.4.9 version (it was better with 8.3.3) text .t .t insert 1.0 [string repeat "x" 100000] but this works ok: text .t .t insert 1.0 [string repeat "x\n" 100000] | |||
| User Comments: |
fvogel added on 2015-10-11 09:40:00:
The test script in itself is not ineffic: package require Tk destroy .t set s [string repeat "x" 100000] pack [text .t] time { .t insert 1.0 $s } Timing is 166 microseconds per iteration in 8.4.20 and 355 microseconds per iteration in core-8-5-branch (OK, that's twice the time, well). But then, once it's in the widget, then inefficiency is obvious. With core-8-5-branch it is really unusable. Stuck for tens of seconds even for simple actions such as moving the cursor in the text. With 8.4.20 it is certainly a bit slow, but still quite usable. With 8.3.x, no idea. Configuring the widget with -wrap none, there is no issue (except [1449858]). | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki