[5340] in testers

home help back first fref pref prev next nref lref last post

Re: 9.2.2 on Solaris - extreme slowness in screen updates

daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon May 5 02:33:22 2003

Date: Mon, 5 May 2003 02:33:15 -0400
Message-Id: <200305050633.h456XFYw003214@error-messages.mit.edu>
From: Greg Hudson <ghudson@MIT.EDU>
To: Greg Hudson <ghudson@MIT.EDU>
CC: Alex T Prengel <alexp@MIT.EDU>, testers@MIT.EDU
In-reply-to: <200305041832.OAA08178@equal-rites.mit.edu>

> So clearly gnome-terminal is doing something awful in response to
> mouse motion events (and more of it, if there's more text in the
> window), and Linux machines are just more capable of handling it.

Found it.  The vte widget is looking for URLs to highlight, which
means matching against two regular expressions:

  (((news|telnet|nttp|file|http|ftp|https)://)|(www|ftp)[-A-Za-z0-9]*\.)[-A-Za-z0-9\.]+(:[0-9]*)?
  (((news|telnet|nttp|file|http|ftp|https)://)|(www|ftp)[-A-Za-z0-9]*\.)[-A-Za-z0-9\.]+(:[0-9]*)?/[-A-Za-z0-9_\$\.\+\!\*\(\),;:@&=\?/~\#\%]*[^]'\.}>\) ,\"]

It looks like the Linux native regular expression routines are better
at handling those monsters than the Solaris one is.  I've tried
linking gnome-terminal against a couple of old gnu regular expression
libraries and got core dumps; tomorrow I will try pcre (which is more
effort) or just hand-code a matching routine for those particular
URLs.

home help back first fref pref prev next nref lref last post