XMonad.Layout.ShowWName patch

Hello, I use xmonad on a 512MB laptop. I noticed that using |showWName| (from XMonad.Layout.ShowWName) in my layoutHook slowed down Xmonad when switching between workspaces. I logged into #xmonad and enquired about it. Let me quote user geekosaur, who correctly diagnosed the problem: geekosaur "The XSync function flushes the output buffer and then waits until all requests have been received and processed by the X server." that's gonna hurt... geekosaur looks like a case of premature optimization, from the patch history So I deleted that particular call; workspace switching is more responsive after that (on my other machine, with more RAM, the difference is barely noticeable). I attach the .dpatch -Francesco

On Fri, May 17, 2013 at 12:46 PM, FA - ML
I use xmonad on a 512MB laptop. I noticed that using |showWName| (from XMonad.Layout.ShowWName) in my layoutHook slowed down Xmonad when switching between workspaces.
I logged into #xmonad and enquired about it. Let me quote user geekosaur, who correctly diagnosed the problem:
geekosaur "The XSync function flushes the output buffer and then waits until all requests have been received and processed by the X server." that's gonna hurt... geekosaur looks like a case of premature optimization, from the patch history
So I deleted that particular call; workspace switching is more responsive after that (on my other machine, with more RAM, the difference is barely noticeable).
Hard to see how deleting that line could hurt, so I've pushed it. -- gwern http://www.gwern.net

This 1-patch bundle was just applied to http://code.haskell.org/XMonadContrib:
20130517153341 Francesco Ariis
participants (3)
-
darcswatch@nomeata.de
-
FA - ML
-
Gwern Branwen