Re: [gtk-list] Slowness of c++



Hello ;)

> Hello,
>   This might not be the correct play for this question, but maybe
> someone's knows the answer.
>   I'm changing a C program using gtk into a C++ with the VDK
> wrapper.  I've noticed that while they both are using
> gtk_timeout_add, the C++ is ..much.. slower than the C one.
> Basically, the C++ program is using a lot more CPU and the mouse
> is very sluggish..it take almost a second after clicking on the close
> window button for the program to quit.  The C program however is
> quite fast with no noticeable slowness.
>   Is this due to the C++ wrapper VDK?  Poor C++ programming (I
> am a novice)?  Or what?
>   Thanks,
>       Kurt
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

I'have tried VDK 2 month ago and I had this speed problem too, I think it's
not a good idea to use VDK with a program witch is speed critical, because VDK
is a C++ library that uses GTK+ functions. VDK increase the visibility of your
source but for my hown It's better to code directly in C++ using GTK+
functions. But if you take care of the portability of your code you should use
a C compiler.

Xavier



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]