tinywm icon indicating copy to clipboard operation
tinywm copied to clipboard

[Discussion] - XCB instead of Xlib?

Open dalmoz opened this issue 13 years ago • 2 comments

Will it be more efficient to make the project dependent on XCB instead of Xlib?

In terms of -

  1. Fewer lines of code
  2. Resource-consumption-wise

dalmoz avatar Jul 27 '12 13:07 dalmoz

My vague impression of XCB is that it would probably require more lines of code. I could definitely be wrong though.

Resource consumption -- what resource consumption? :-)

I just googled it and it looks like someone has beaten us to the punch: https://github.com/rtyler/tinywm-ada/blob/master/tinywm-xcb.c

mackstann avatar Sep 01 '12 05:09 mackstann

My vague impression of XCB is that it would probably require more lines of code. I could definitely be wrong though.

Resource consumption -- what resource consumption? :-)

I just googled it and it looks like someone has beaten us to the punch: https://github.com/rtyler/tinywm-ada/blob/master/tinywm-xcb.c

Resource consumption -- what resource consumption? :-)

Yeah I agree (so small it's barely noticable), but as XCB is smaller the binary would not be as big (probably) and it might be even lighter on ram :+1:

ar1ja avatar Nov 18 '21 15:11 ar1ja