Issue 377 in xmonad: Tabbed layout with long window title makes XMonad very slow

Status: New Owner: ---- New issue 377 by vandijk.roel: Tabbed layout with long window title makes XMonad very slow http://code.google.com/p/xmonad/issues/detail?id=377 What steps will reproduce the problem? 1. Switch to a tabbed layout 2. Point a browser to http://tutorial.happstack.com/src/ControllerBasic.hs Reproducible with both Firefox and Chromium. Upon navigating to the above URL XMonad uses 100% CPU for multiple seconds. This makes the system and XMonad in particular very unresponsive. This is very likely caused by an extremely long window title. The mentioned URL uses the entire source code of ControllerBasic.hs as the title of the page (which is probably a bug in itself). This title consists of 8340 characters. The browser then uses the page title as the window title which in turn is passed on to XMonad. What is the expected output? What do you see instead? I expect XMonad to not spend significantly more time on windows with a long title then on windows with a short title. On my system it takes over 5 seconds. This happens every time I change the layout to tabbed or switch the focus or workspace to one containing the evil window. It happens ONLY with tabbed layout. I created some dummy HTML files with titles of increasing length. The slowdown becomes apparent with titles over 1000 characters. The slowdown appears to be more than linear in terms of the window title length. The attached files test3, test4 and test5.html have title lengths of 500, 1000 and 2000 characters. Try viewing test5.html in a browser in tabbed layout and then switching between that window and another innocent one (terminal?) with [WIN]+[TAB] a few times to notice the problem. What version of the product are you using? On what operating system? xmonad-0.9.1
uname -a Linux pcroel 2.6.31-gentoo-r10 #1 PREEMPT Tue Feb 23 12:46:16 CET 2010 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
A simple workaround might be truncating window titles to a maximum of a few hundred characters. Attachments: xmonad.hs 7.1 KB test3.html 562 bytes test4.html 1.0 KB test5.html 2.0 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Comment #1 on issue 377 by vandijk.roel: Tabbed layout with long window title makes XMonad very slow http://code.google.com/p/xmonad/issues/detail?id=377 The following comment seems highly relevant: http://code.google.com/p/xmonad/issues/detail?id=179#c2 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
participants (1)
-
codesite-noreply@google.com