On Friday, September 17, 2021 at 8:28:34 AM UTC-6 [email protected] 
wrote:

> Hi,
>
> I am new to Qtile and desperately want to switch to it from DWM. Being a 
> somewhat new python developer, I have seen that python can be slow at times 
> and people use compilers like Numba to speed up the python code. Is this 
> kind of acceleration possible for qtile ?
>
So numba (and pythran, cython, etc) are 99% geared towards accelerating 
computationally intensive tasks. Think matrix multiplication and the like. 
In qtile, there isn't much (if any) of that happening, so I highly doubt 
qtile would benefit much from those forms of acceleration. Not to mention 
those accelerators are usually fairly limiting in what you can actually do 
if you want to properly exploit them.
 

> More importantly, will qtile even be improved in the performance by using 
> the above (or any other) trick ? I have seen some older posts on reddit 
> (posted before 2018) that said that qtile was noticably slower and almost 
> unusable because of slowness of python. How much true is that sentiment 
> today given that both qtile and python have developed much more since then ?
>
I was also concerned with that and it kept me from moving over to qtile. I 
honestly haven't noticed any major slowness, as the Python part of qtile is 
effectively just glue code. qtile also operates on an async framework, 
which may have not true back in 2018. The other major issue with 
"percieved" slowness python is the startup time (see discussion here 
<https://mail.python.org/pipermail/python-dev/2018-May/153296.html> and here 
<https://news.ycombinator.com/item?id=16978932>). However, the qtile 
instance never shutsdown in normal use, so you never really notice the 
Python kernel startup time.
 

> Also, why do people seem to always rip on qtile claiming that it's slow 
> because python is interpreted when other window managers like xmonad or 
> awesomewm are also written in languages that are interpreted ?
>
xmonad is based in Haskell, which is statically typed. awesomewm is based 
in C and Lua, where Lua is generally considered to be faster than Python. 
The issue may just be the stigma around Python being a duck-typed language 
who's primary goal was to be simple to write.

>  
>
I am by no means an expert in python so please feel free to correct me
>
> Please redirect me to correct forum if this isn't the correct place. 
>
> Regards
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/5654b226-d95b-426c-860c-cf1785a0773cn%40googlegroups.com.

Reply via email to