WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: XCB vs Xlib  (Read 4287 times)

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
XCB vs Xlib
« on: January 08, 2010, 06:50:58 PM »
Here is the site for XCB: http://xcb.freedesktop.org/

They claim to be smaller then Xlib and projects are switching to that over Xlib. They also say there is a backend through Xlib for non XCB apps to be compatible with XCB.

I built this (for a requirement of other extensions) and the squashfs size is 112k, the unpacked size is 340k. How do these sizes compare to the current Xlib in TC? Would it be a good idea to switch to XCB for TC 3.x?
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11043
Re: XCB vs Xlib
« Reply #1 on: January 09, 2010, 04:51:17 AM »
It has a huge amount of libs vs 1 for Xlib. And requires python in the building phase. Also, it needs to be built before other X libs (it's a replacement for Xlib), an extension like that might cause conflicts.

Smaller - not really, as those 340kb come in addition to the 1.1mb of libX11, not in place of.

It was used before, in the very first Xorg extension, but decided not to be worth it back then.
The only barriers that can stop you are the ones you create yourself.