[Gambas-devel] Perfomance differences between gb.gtk and gb.qt components

José Luis Redrejo jredrejo at ...176...
Mon Nov 19 09:39:29 CET 2007


Hi, I'm doing some tests with a pretty complex application made in gambas.
It has quite a bunch of classes and about one thousand lines of code.
I was surprised when I checked the just starting the application and let it
show the graphical interface, without interacting with it, took a lot of cpu
use in a quite powerful computer (checked with the gnome-system monitor and
later with top), but I was much more surprised when changing from using
gb.gtk to gb.qt the cpu use was as little as it can not be appreciate, so it
was around 0.
This can be easily appreciated just creating a clean new project with a
form, a couple of buttons and a textbox, without adding any code. Running it
with gb.qt, top only shows gbx2 comsumption at the starting and very fast it
disappears from the view, running it using gb.gtk the application stays on
top of the processes all the time, with about a 4% of CPU use.

So, it seems there is some problem with the event loop in gb.gtk component.
I think this is a very important bug in order to use gambas under Gnome, as
many users do.

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20071119/eebab4b6/attachment.html>


More information about the Devel mailing list