Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Why is wxPerl slower than Win32GUI?

by Anonymous Monk
on Jun 02, 2011 at 00:05 UTC ( [id://907722]=note: print w/replies, xml ) Need Help??


in reply to Why is wxPerl slower than Win32GUI?

Win32::GUI is faster than wxPerl in my case perhaps because the data file used in my case contains both English and Chinese characters and the Chinese characters get displayed much faster on screen when using the native API of a Chinese system.

Is your wxPerl built with unicode support?

In my latest results, wxPerl is the fastest by a one to two seconds

$ perl zj907592tk.pl Total running time: 00:00:07 at zj907592tk.pl line 64, <$data> line 7553. $ perl zj907592w32.pl Total running time: 00:00:08 at zj907592w32.pl line 64, <$data> line 7553. $ perl zj907592wx.pl Total running time: 00:00:06 at zj907592wx.pl line 70, <$data> line 7553. Total running time: 00:00:06 at zj907592wx.pl line 70, <$data> line 7553.
The chinese I got from http://corpus.leeds.ac.uk/internet.html looks like gibberish on my us english laptop

Replies are listed 'Best First'.
Re^2: Why is wxPerl slower than Win32GUI?
by ZJ.Mike.2009 (Scribe) on Jun 02, 2011 at 01:07 UTC

    @Anonymous Monk, thanks for the testing. The result is very interesting but I'm wondering if wxPerl would be still the fastest when you also get the Chinese characters displayed properly.

    And yes, my wxPerl fully supports unicode. Is there a wxPerl version that does not support Unicode? The thing is this: Win32::GUI does not support Unicode (even though my system fully supports Chinese and Unicode, Chinese characters encoded in utf8 get garbled in my Win32::GUI app). Tk partially supports Unicode. It does not support Unicode characters outside the basic multilingual plane (if my Tk app contains unicode characters outside the BMP, Tk crashes with a codepoint too high warning). Fortunately, wxPerl is the one that fully supports Unicode.
      The result is very interesting but I'm wondering if wxPerl would be still the fastest when you also get the Chinese characters displayed properly.

      The speed difference is well within the margin for noise. The only reason I mentioned it, is because it has been consistent in my tests. I doubt having a chinese font would make a difference (not going to test).

      And yes, my wxPerl fully supports unicode. Is there a wxPerl version that does not support Unicode?

      wxWidgets unicode support is optional (wxUNICODE)

Log In?
Username:
Password:

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

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

    No recent polls found