[Gambas-devel] Perfomance differences between gb.gtk and gb.qt components
José Luis Redrejo
jredrejo at ...176...
Sat Nov 24 16:33:32 CET 2007
Well, using svn modifications, now gtk applications don't eat cpu, as they
previously did. But running big applications (which open several process
for input and some timers) gtk is much, much slower than qt, so it seems the
fix for the event loop has broken something...
2007/11/20, Daniel Campos <dcamposf at ...176...>:
>
> Well, yes, your fix seems to be the only way to free the source...
> extrange
>
> 2007/11/20, Daniel Campos <dcamposf at ...176...>:
> > Yes, I see... well, checking again what's happening, the documentation
> > is not clear, as usual
> >
> > Stay tuned :-)
> >
> > 2007/11/20, Benoit Minisini <gambas at ...1...>:
> > > On mardi 20 novembre 2007, Benoit Minisini wrote:
> > > > On lundi 19 novembre 2007, Daniel Campos wrote:
> > > > > Well, there are functions to watch file descriptor inide the main
> > > > > event loop of GTK+,I will rewrite that code, but It will take a
> bit,
> > > > > stay tuned...
> > > >
> > > > With the last revision, I get 100% CPU usage...
> > >
> > > If I put a "return;" just to the beginning of the CWatcher::Add()
> function,
> > > then I get normal CPU usage.
> > >
> > > This function is called because my GTK+ project uses gb.form, that
> calls
> > > external processes during the initialization of the Stock class, and
> so the
> > > file descriptor of the processes input/output are watched.
> > >
> > > So there is something in g_io_* functions that makes
> gtk_main_iteration() not
> > > blocking after having been used, even if the GIOChannel are correctly
> > > unreferenced, and so destroyed.
> > >
> > > Regards,
> > >
> > > --
> > > Benoit Minisini
> > >
> > >
> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by: Microsoft
> > > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > _______________________________________________
> > > Gambas-devel mailing list
> > > Gambas-devel at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-devel
> > >
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20071124/5946e7ee/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_gtk.tar.gz
Type: application/x-gzip
Size: 4429 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20071124/5946e7ee/attachment.bin>
More information about the Devel
mailing list