Hi,
I think this is my first post here. So, I'd like to present myself.
I'm big fun of TCL/TK. I've been working with TCL since 2005 in one of the automotive company in test department. TCL and TK is one of most important languages. I'm using TCL for simple jobs as well as more complex tests in Windows, FreeBSD, CentOS where TCL uses such technologies like SQL, RabbitMQ, win32api, BSD, HTTP, REST, JSON, and more.
Anyhow, in last days I got information there is problem with one of the TK application. The newest version written in 8.6.6 consumes a lot of memory, too much ~1GB after 16h of work. The same application consumes 60-70MB in TCL/TK 8.5.15. Why??
To make this story short - after 2 days of debugging I finally fond the issue.
By default in TCL/Tk 8.6.x text widget has UNDO mechanism enabled, in TCL/TK 8.5.x not!! Undo mechanism does not have any limits (why?).
Even if I delete everything from text widgets, the data still stays in memory. So, without calling "edit undo reset" and without knowledge how undo works we have memory leak.
The application which I'm writing has log window (text widget) which is heavy used. Also build-in wish console use the same text widgets. It took me a lot of time to find it.
I search release log,
wiki.tcl.tk and this group and find nothing about change of default behavior of text widget.
To summarize - I'm voting to disable the undo mechanism by default in next release.
1. In my case, it would save a lot of time
2. Undo without limitation = memory leak if don't know how undo works (which is normal at the beginning)
Anyway - maybe someone had good reason to make such change?
Thanks,
/TT