|
楼主 |
发表于 2005-8-19 10:01:41
|
显示全部楼层
这里有个人做了测试:
http://osnews.com/permalink.php?news_id=11564&comment_id=17959
I am using GTK+ with cairo for some days now and havent noticed any speed issues about it. For those who finds it hard to believe :
Without cairo:
GtkPerf 0.30 - Starting testing: Sun Aug 7 21:46:49 2005
GtkEntry - time: 0,03
GtkComboBox - time: 1,24
GtkComboBoxEntry - time: 1,13
GtkSpinButton - time: 0,16
GtkProgressBar - time: 0,05
GtkToggleButton - time: 0,59
GtkCheckButton - time: 0,51
GtkRadioButton - time: 0,55
GtkTextView - Add text - time: 0,90
GtkTextView - Scroll - time: 0,60
GtkDrawingArea - Lines - time: 0,32
GtkDrawingArea - Circles - time: 0,44
GtkDrawingArea - Text - time: 0,87
GtkDrawingArea - Pixbufs - time: 0,03
---
Total time: 7,41
With cairo:
GtkPerf 0.30 - Starting testing: Sun Aug 7 21:48:05 2005
GtkEntry - time: 0,04
GtkComboBox - time: 1,22
GtkComboBoxEntry - time: 1,11
GtkSpinButton - time: 0,16
GtkProgressBar - time: 0,05
GtkToggleButton - time: 0,57
GtkCheckButton - time: 0,49
GtkRadioButton - time: 0,53
GtkTextView - Add text - time: 0,89
GtkTextView - Scroll - time: 0,59
GtkDrawingArea - Lines - time: 0,31
GtkDrawingArea - Circles - time: 0,43
GtkDrawingArea - Text - time: 0,87
GtkDrawingArea - Pixbufs - time: 0,37
---
Total time: 7,64
As you see most things are faster in gtk+ with cairo. The only thing that is slower is GtkDrawingArea - Pixbufs which was impossible to notice in practical using of Gnome.
The other thing is that cairo is going to imporve and with glitz in future it should many times faster so please stop this nonsence about cairo being slow. I'm shure most of those who says it hasn't even tried it. |
|