Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Perl tk gui hangs when large data thrown to it

by Anonymous Monk
on Oct 15, 2013 at 17:15 UTC ( #1058328=note: print w/replies, xml ) Need Help??

in reply to Perl tk gui hangs when large data thrown to it

The bottom-line is very simple: you are asking for something that is both technically impossible, and visually useless. A gui-display update should be periodic, driven by some kind of a timer. Once every 5 seconds, perhaps. Maybe once a second. You do not update the display "every time the data changes." Instead, you update the display to reflect changes made to any currently-visible widgets since the last update cycle. You're going to have to redesign this part of the code. There is no other option.
  • Comment on Re: Perl tk gui hangs when large data thrown to it

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058328]
[perldigious]: karlgoethebier: Well it is a pretty old and complicated (for me) bit of code I wrote (poorly by my current standards), so I'm expecting everything to break when I add the scoping and find out what else is undesireably scope changed. :-)
[perldigious]: Ah, thanks choroba, that sort of thing was precisely what I was wondering when I asked.
[perldigious]: I didn't want to tie up memory unecessarily basically, I wanted to "delete" it specifically to free it up, and wasn't sure I was even accomplishing that.
[stevieb]: perldigious You should start by writing some unit tests. That'll ensure current functionality doesn't break with changes.
[choroba]: unit tests++
[choroba]: The only problem you can't solve by adding more tests is the problem of having too many tests.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-07-21 19:57 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (335 votes). Check out past polls.