News for hackers. Stuff that matters.
Re:QTile – An XMonad-like tiling WM written in Python by butz on Monday July 06, 2020 @12:04PM (#23749293)
Is there any significant performance penalty using WM built in Python?
Re:QTile – An XMonad-like tiling WM written in Python by pmiller2 on Monday July 06, 2020 @12:43PM (#23749698)
Take a look at the requirements.txt: https://github.com/qtile/qtile/blob/ecf216205ccfe72bbdee3183...

All the heavy lifting is offloaded to C libraries. So, no, you shouldn't see a significant performance penalty, unless your Python WM is doing bitcoin mining in the background or something.

Re:QTile – An XMonad-like tiling WM written in Python by sqrt17 on Monday July 06, 2020 @12:09PM (#23749331)
It's a WM (Window Manager). It only sets the placement of windows, it does not interfere with the programs themselves (that's what systemd and gnome-session do) nor does it do the fancy part of the painting (that's what a compositor does).

So no, do not expect a significant performance penalty.

Re:QTile – An XMonad-like tiling WM written in Python by YarickR2 on Monday July 06, 2020 @12:39PM (#23749634)
Having done tiling WM with lots of logic implemented in Lua myself, ten or so years ago, I never met any performance issues, besides repainting of dragging indicators for free floating windows
Re:QTile – An XMonad-like tiling WM written in Python by heavyset_go on Monday July 06, 2020 @12:07PM (#23749309)
Couldn't really imagine there being any. WM events are few and far between, and are hardly constrained by single thread performance.
Re:QTile – An XMonad-like tiling WM written in Python by vmchale on Monday July 06, 2020 @12:32PM (#23749562)
Curious how the garbage collector works.
Re:QTile – An XMonad-like tiling WM written in Python by mikelward on Monday July 06, 2020 @01:40PM (#23750449)
I used a Go-based window manager called Wingo for quite a while and never noticed any performance issues.
Re:QTile – An XMonad-like tiling WM written in Python by pjmlp on Monday July 06, 2020 @02:00PM (#23750731)
Go is also fully compiled to native code, big difference.
Re:QTile – An XMonad-like tiling WM written in Python by yjftsjthsd-h on Monday July 06, 2020 @02:35PM (#23751141)
But it's still garbage collected. And GC should be done by the python interpreter proper, so it would be in native code.
Re:QTile – An XMonad-like tiling WM written in Python by pjmlp on Monday July 06, 2020 @03:56PM (#23752032)
A tiny portion of Python's total execution time.
Re:QTile – An XMonad-like tiling WM written in Python by yjftsjthsd-h on Monday July 06, 2020 @04:07PM (#23752153)
Don't get me wrong; I expect Go to be far more performant than Python. Just, they're both garbage-collected, and I have no reason to expect GC perf (specifically) to differ.
Re:QTile – An XMonad-like tiling WM written in Python by pjmlp on Monday July 06, 2020 @05:03PM (#23752735)
Which just shows that learning about GC algorithms is a must.

http://gchandbook.org/

And the differences between value types, AOT compiled code execution, bytecode interpreters and FFI marshalling costs between bytecode interpreters and native libraries.