rmarion has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I've been working on a GUI project using Tk, specifically the Table module in Tk. The table has 6000+ elements, and I've been using Tk label widgets for each cell in the table. The labels are useful to me because I can format the cells as needed.

It looks like the size of the table is causing the program to generate very slowly, likely due to the overhead of the widgets. The program will also crash/freeze up on exit, and the only way to close it is to go into the task manager and end the task.
Please let me know if there's something I can do to remedy this issue, or if there are some alternatives that will make things quicker in my GUI.

Thanks,
rmarion

Replies are listed 'Best First'.
Re: Perl/Tk Freezes up on Exit
by ww (Archbishop) on Jun 11, 2015 at 22:49 UTC

    First (but this really should be a mere afterthought), your vague (ie, lacking specifics) description makes the overall process seem likely to be slow, or perhaps even to run out of memory, start thrashing to and from disk and make life miserable.

    But the real answer is: you haven't told us enough to work with. What OS; what's a snippet of the code that produces the same failure look like; which widgets and have you calculated their overhead? etc. etc.

    Please read On asking for help and How do I post a question effectively?

      Thank you for your feedback. I am new to this community, but I will try to make my questions more effective and specific in the future.

      I understand that you are trying to help, and I appreciate the criticism.

Re: Perl/Tk Freezes up on Exit ( virtual Tk::Table)
by Anonymous Monk on Jun 11, 2015 at 23:59 UTC