Re: Speeding up awful.client.setslave() / tasklist

2009-05-09 Thread Julien Danjou
At 1241828865 time_t, Gregor Best wrote: For example, is it really neccessary to swap with each visible client? Wouldn't swapping the client with the first slave client to the trick? No, the purpose of the function is to put the client as the latest slave, so this is the only way to do it.

Speeding up awful.client.setslave() / tasklist

2009-05-08 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, today I had some fun with wm_torture[1] thanks to jd_ and I also had some fun with another profiler[2] for lua which produces callgrind-like files which can be opened in kcachegrind. The throughput test was interesting (tests done with awesome

Re: Speeding up awful.client.setslave() / tasklist

2009-05-08 Thread Julien Danjou
At 1241809116 time_t, Uli Schlachter wrote: So far, I only thought about moving awful.client.setslave() into the C code, but that seems to be quite inflexible. Another way would be adding another need_update-like variable to globalconf, something like

Re: Speeding up awful.client.setslave() / tasklist

2009-05-08 Thread Gregor Best
At Fri, 8 May 2009 22:23:47 +0200 Julien Danjou wrote: [...] - Do what you need to reduce calls. For example, is it really neccessary to swap with each visible client? Wouldn't swapping the client with the first slave client to the trick? -- GCS/IT/M d- s+:- a--- C++ UL+++ US UB++ P+++ L+++