Re: [dev] PATCH for/back navigation with xprop

From: Gregor Best <gbe_AT_ring0.de>
Date: Tue, 7 Jun 2011 17:37:34 +0200

On Tue, Jun 07, 2011 at 03:25:53PM +0000, Bjartur Thorlacius wrote:
> [...]
> I wasn't thinking of a single string match, but a string match for
> about every application that maps a window.
> [...]

I don't know what kind of system you run, but on my machine, the
frequency with which new windows get mapped is way less than 0.1Hz. I
don't think a few (even a few hundred) string matches play a big role
there. Think of things like dmenu with ~10 000 items piped in. It has to
do a lot more string compares than your window manager with however
fancy matching you desire and it still performs quite nicely (I'm not
sure how it performs on an 8MB 486).

-- 
    $l="\n";$p=q-sub r{rand}sub c{((shift)**2+(shift)**2)<1}while(
    $i++<=$s){$t++if c r,r}die("Gregor Best, 0xDB9F9A7C, ".($t/$s*
    4).$l)-;$s+=ord$$|$_ for split //,$p;srand($s|$$);eval$p;die$@

Received on Tue Jun 07 2011 - 17:37:34 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 07 2011 - 18:12:03 CEST