Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Why so slow when using Perl/Tk?

by RAS230 (Acolyte)
on Jul 29, 2009 at 00:05 UTC ( [id://784073]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Why so slow when using Perl/Tk?
in thread Why so slow when using Perl/Tk?

But your distinction between a plain text file and the .html output of your OP puzzles me again, as any difference should be negligible: the .html source is, to all intents and purposes as far as writing the file is concerned, a "plain text file."

I know what you mean. In the end I suspect that it was just because when I tried sending the output as plain text it greatly reduced the number of lines I sent out. All the HTMLSTUFF was removed and my do_this sub was reduced to a few lines.

sub do_this() { open FILE, "> $filename" or die "ERROR WRITTING FILE: $filename\nSyste +m reported $!"; print FILE "\n"; foreach (sort keys(%stuff1) ) { print FILE "$stuff1{$_} | ";} print FILE "\n"; foreach (sort keys(%stuff2) ) { print FILE "$stuff2{$_} | ";} close FILE; system "start /b $filename"; }

Replies are listed 'Best First'.
Re^5: Why so slow when using Perl/Tk?
by Argel (Prior) on Jul 29, 2009 at 00:31 UTC
    If going from HTML to plain text speeds things up considerably then Tk isn't your problem! Take BrowserUK's advice in 784062 and look at your setup to see what could be causing the problem.

    Elda Taluta; Sarks Sark; Ark Arks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://784073]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-18 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found