[PyQt] Optimizing WebView display
alan moore
me at alandmoore.com
Thu Sep 2 04:05:47 BST 2010
I ran my script with callgrind and looked at the output in Kcachegrind,
but I didn't really grasp much of what it was telling me. It seems that
I'm spending an inordinate amount of time in libfontconfig.so, but
otherwise I couldn't identify any of my functions that were slow.
The tricky part about optimizing this is that it isn't exactly the
*program itself* that is slow -- the thin clients aren't running the
program. They're just receiving the X11 data from the server (which is
actually running the code, and barely breaking a sweat doing it).
So I guess what I really need is to reduce the amount of data being sent
to the X server to a bare minimum. It does alright with showing a web
page, it's the actual interactive bits (drop downs, text inputs, etc)
that are really slow.
On 09/01/2010 02:45 AM, Nick Gaens wrote:
> Or, profile your application using a tool like Valgrind to find out what
> parts of your code in particular should be worth looking at for
> optimizing purposes. Remember the 90/10 rule: a 90 percent speed
> increase can be achieved by optimizing only 10 percent of your code.
>
> On Wed, Sep 1, 2010 at 06:02, Taylor Carrasco <crackerbunny at gmail.com
> <mailto:crackerbunny at gmail.com>> wrote:
>
> Is the code available for us to take a look at for possible
> optimizations
>
> On Tue, Aug 31, 2010 at 9:09 AM, alanm <me at alandmoore.com
> <mailto:me at alandmoore.com>> wrote:
>
> I wrote a small browser in PyQT4 using QWebView, of course. The
> browser runs
> well and does what I need, but when I deployed it to my thin
> clients, it was
> far to slow to use.
>
> In fact, most modern browsers were; I had to settle on Epiphany
> because all
> the other browsers I tried were far to slow at showing or
> interacting with
> HTML controls (text inputs, drop-downs, etc).
>
> I tried disabling all QT effects in the Trolltech.conf file, and
> various
> graphicssystem settings on Qapplication, but it's still slow.
>
> Are there any other places where graphical effects can be toned
> down or
> optimized? I still notice a bit of a fade-in effect on
> drop-downs even when
> all QT Gui effects are disabled, and this is rendering really
> badly on the
> thin clients (slow and lots of screen artifacts).
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> <mailto:PyQt at riverbankcomputing.com>
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> <mailto:PyQt at riverbankcomputing.com>
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
>
> --
> Nick Gaens
>
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list