Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about destroy

Status
Not open for further replies.

smugindividual

Programmer
Apr 14, 2003
104
US
I'm destroying a text widget with around 20,000 lines of text in it. When my user goes to close the file, the destroy command takes forever to finish. Is there anything better than destroy? Or a quicker way to kill the widget. No, deleting 1.0 end does not speed anything up.
 
I think Ulis had some megawidget stuff that was reasonably fast. If the cleanup time really is unavoidable and you
have reported the issue with time() reporting and an strace/debugger dump to comp.lang.tcl think about maybe spawning the textbox asynchronously, in a child or thread where it doesn't affect the rest of the (parent)code, and you can catch it's return.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top