GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Apr 23, 2014 5:45 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: gtkmm slower than gtk?
PostPosted: Fri Feb 24, 2012 3:08 pm 
Offline
Familiar Face

Joined: Fri Nov 28, 2008 7:54 am
Posts: 38
Location: Italy, Milan
Hi,
at my job we installed either gtk3 and gtkmm3 on an embedded linux board.
We wrote several apps in both gtk3 and gtkmm3 (but never the same app in both languages).
It seems to us that applications written in gtk3 are quite faster than applications written in gtkmm3,
can anybody confirm it or deny my impressions?

_________________
my projects:
http://giuspen.com/cherrytree
http://giuspen.com/x-tile
http://giuspen.com/nautilus-pyextensions


Top
 Profile  
 
 Post subject: Re: gtkmm slower than gtk?
PostPosted: Fri Feb 24, 2012 7:01 pm 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 709
Location: UK
Any application written using gtkmm or any other language binding will be a little bit slower than the plain C API to GTK due to the over heads involved. These over heads are tiny and most calls to GTK via a binding the over head would be just a tiny fraction of a percent of the whole call. Since you are not comparing like with like you are not really doing a proper test and if you are really worried about performance you should try using a profiler to find out where the most time is spent in an application.

By the way I use gtkmm a far bit and in an application which involves processing audio with displaying up to date information on the many playing tracks in a window. So far I have not found using gtkmm a problem in terms of speed.

_________________
E.


Top
 Profile  
 
 Post subject: Re: gtkmm slower than gtk?
PostPosted: Mon Mar 05, 2012 1:35 am 
Offline

Joined: Mon Mar 05, 2012 1:03 am
Posts: 3
Location: California, US
Still seems kind of heavyweight for an embedded app, doesn't it? A fork specifically for embedded apps would be an interesting project... hmmm...

_________________
"I got two tool stacks and batch of PERL, where its at."


Top
 Profile  
 
 Post subject: Re: gtkmm slower than gtk?
PostPosted: Mon Mar 05, 2012 7:44 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 709
Location: UK
Hi,

There are other C++ bindings for GTK. Probably the main other one is Xfce foundation classes. It gains slightly more efficiency over gtkmm by not using many C++ features. Again like many others it has not gained much use and fallen out of use by many.

If you need full control and the ultimate efficiency for an embedded system then C++ is not really the language to go for, just stick with C and use the GTK+ API directly.

_________________
E.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group