Is rtext likely to be in Tcl/Tk 9.1?
In https://core.tcl-lang.org/tips/doc/trunk/tip/466.md
the Tcl-Version is 9.1, but it also has Vote: Pending.
Am 04.12.2025 um 11:12 schrieb Mark Summerfield:
Is rtext likely to be in Tcl/Tk 9.1?
In https://core.tcl-lang.org/tips/doc/trunk/tip/466.md
the Tcl-Version is 9.1, but it also has Vote: Pending.
As Wizard Francois Vogel left, there is currently no supporter.
Francois wrote, that the implementation is "Wizard style" and to genious to understand.
Csaba tested it and was in favor.
Paul uses it in a productive manner.
The widget is ready and available as an extension.
It solves the issue, that the current text widget may freeze for a long time (10 seconds) to do eliding, e.g. if the widget is resized and there is a lot of thext in.
I often see this with the console on Windows.
If it is full and I resize it, the application freezes for around 10 seconds.
Any support is appreciated !
Harald
The key was to optimize the code that does a .console see operation on
each output. Here's my test code where I fine tuned that behavior. This
also sets the maxlines to 100k and has a button to dump out 5000 lines. Initially, it will be slow, but if you check the faster checkbox it will improve quite a bit.
On 12/4/2025 11:42 PM, et99 wrote:
I have seen the slowdown issue as well. When you have a large string, the wait can easily exceed 30 seconds in some cases.
The key was to optimize the code that does a .console see operation on each output. Here's my test code where I fine tuned that behavior. This also sets the maxlines to 100k and has a button to dump out 5000 lines. Initially, it will be slow, but if you check the faster checkbox it will improve quite a bit.
Is your work-around applicable to text widgets too? It sounds like you have implemented it for the console only.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,089 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 153:54:05 |
| Calls: | 13,921 |
| Calls today: | 2 |
| Files: | 187,021 |
| D/L today: |
3,760 files (944M bytes) |
| Messages: | 2,457,163 |