Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Why is wxPerl slower than Win32GUI?

by Anonymous Monk
on Jun 01, 2011 at 10:50 UTC ( [id://907598]=note: print w/replies, xml ) Need Help??


in reply to Why is wxPerl slower than Win32GUI?

wxWidgets is a slightly thicker wrapper for the native widget set, so it will be a little slower

FWIW, on my machine, with perl -le " print 1 for 1 .. 10*1024  " >data, and adding this to both files

my $ix = 0; while (<$data>) { if(/$query/i){ $ix++; $display_field->Append("$ix : $_") } } ... warn "$time ";
I get 8 for wxPerl, 4 for Win32::GUI, but Win32::GUI stops updating after ~3456 lines, go figure

Replies are listed 'Best First'.
Re^2: Why is wxPerl slower than Win32GUI?
by ZJ.Mike.2009 (Scribe) on Jun 01, 2011 at 11:07 UTC
    Thank you Anonymous Monk for the testing.

    To deal with the buffer overflow in Win32::GUI, you might need to add something like this:

    #Deals with buffer overflow $display_field->SetLimitText(10000000);
      With that change, the difference is zero to one second.
        Thanks for the information. I'm now suspecting the problem I'm experiencing might have something to do with character encoding. I'll keep my post updated. Thank you again.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found