From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Console based mouse face highlighting. Date: Tue, 15 May 2007 23:33:53 +0200 Message-ID: <858xbp4vr2.fsf@lola.goethe.zz> References: <17989.37070.393150.565546@kahikatea.snap.net.nz> <17990.21422.577087.305723@kahikatea.snap.net.nz> <17990.37305.657724.344516@kahikatea.snap.net.nz> <17992.53379.953892.751275@kahikatea.snap.net.nz> <17993.11948.400368.430713@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179264843 11402 80.91.229.12 (15 May 2007 21:34:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 May 2007 21:34:03 +0000 (UTC) Cc: Nick Roberts , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 15 23:34:02 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ho4ee-0007Yn-M1 for ged-emacs-devel@m.gmane.org; Tue, 15 May 2007 23:34:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ho4mY-0002I5-TC for ged-emacs-devel@m.gmane.org; Tue, 15 May 2007 17:42:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ho4mU-0002Gr-CE for emacs-devel@gnu.org; Tue, 15 May 2007 17:42:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ho4mS-0002GN-KM for emacs-devel@gnu.org; Tue, 15 May 2007 17:42:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ho4mS-0002GI-Du for emacs-devel@gnu.org; Tue, 15 May 2007 17:42:04 -0400 Original-Received: from mail-in-08.arcor-online.net ([151.189.21.48]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ho4eW-0007ja-Dz; Tue, 15 May 2007 17:33:52 -0400 Original-Received: from mail-in-01-z2.arcor-online.net (mail-in-05-z2.arcor-online.net [151.189.8.17]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id CEB89292B6D; Tue, 15 May 2007 23:33:50 +0200 (CEST) Original-Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id BCB4E2DAE2E; Tue, 15 May 2007 23:33:50 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-032-073.pools.arcor-ip.net [84.61.32.73]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 965D02D2989; Tue, 15 May 2007 23:33:50 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id E14451CCEC99; Tue, 15 May 2007 23:33:53 +0200 (CEST) In-Reply-To: (Eli Zaretskii's message of "Wed\, 16 May 2007 00\:15\:12 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71124 Archived-At: Eli Zaretskii writes: >> From: Nick Roberts >> Date: Tue, 15 May 2007 15:53:16 +1200 >> Cc: emacs-devel@gnu.org >> >> Is cursor movement expensive on GNU/Linux? > > I don't think so, but in any case, it is IMO wrong to try to optimize > this case before you actually see that it slows down redisplay. I > suggest to do it right first, and worry about speed afterwards, if > needed. "Expensive" is probably the wrong question. With regard to CPU usage, cursor movement on a tty will be negligible. However, it may have visual effects (depending on the terminal in question), and one of the reasons for using a tty in the first place might be a lack of bandwidth or high latency. With regard to latency, one wants to avoid "roundtrips", but those don't occur usually for text terminal control sequences. With regard to bandwidth, one might want to avoid excessive cursor positioning, and also too many separate write calls. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum