From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.devel Subject: Re: Change to NS drawing routines Date: Wed, 15 Aug 2018 21:20:17 +0200 Message-ID: References: <20180811140620.GA1519@breton.holly.idiocy.org> <20180813184659.GA2258@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1534360043 6795 195.159.176.226 (15 Aug 2018 19:07:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2018 19:07:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 15 21:07:19 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fq18Z-0001eS-1c for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 21:07:19 +0200 Original-Received: from localhost ([::1]:51377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fq1Ad-0002G5-N1 for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 15:09:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fq1AY-0002Fy-4b for emacs-devel@gnu.org; Wed, 15 Aug 2018 15:09:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fq1AT-0007Qg-WB for emacs-devel@gnu.org; Wed, 15 Aug 2018 15:09:22 -0400 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:55704) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fq1AT-0007Py-L0 for emacs-devel@gnu.org; Wed, 15 Aug 2018 15:09:17 -0400 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 57F462281A for ; Wed, 15 Aug 2018 19:12:22 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-transfer-encoding:content-type:content-type:mime-version :references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1534360341; x=1535224342; bh=JJFCwIYwoZ0wx yTDuSUSqWEv0SHZOz5iVUgNEpg1k+s=; b=hViDps2wM95btH/n+v/aUlcjLJdKt AAlpih+JKfiNuF6b1uqtrkpDIxYvH/QVr+eRcoLVZh/VlTVbGEZxzcPJu1ToSlun zFcN3BAhYoxEQqfRKBxKKwaxYC+paP2qwymOhpMzekmX9b2DPz/9f7Z4CxpeWLCz uqBPIRvwEqhpeo= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QZD63aW0ev5y for ; Wed, 15 Aug 2018 19:12:21 +0000 (UTC) Original-Received: from gray (214.50.105.92.dynamic.wline.res.cust.swisscom.ch [92.105.50.214]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 9EC57227E9; Wed, 15 Aug 2018 19:12:20 +0000 (UTC) In-reply-to: <20180813184659.GA2258@breton.holly.idiocy.org> (message from Alan Third on Mon, 13 Aug 2018 19:46:59 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 37.35.109.145 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228569 Archived-At: > Date: Mon, 13 Aug 2018 19:46:59 +0100 > From: Alan Third >=20 > from http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00435.htm= l >=20 > I can understand the argument to an extent, but I don=E2=80=99t have an= other > solution. Thanks for the pointer. By the way, I noticed that one of the problems YAMAMOTO Mitsuharu discovered with the current way of drawing is fixed in your branch: > Link: https://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00440.= html > > (Another problem with drawing outside the "expose" handler can be > observed with the NS port on Mac OS X 10.6 and earlier: the resize > handle at the right bottom corner gets overwritten.) It's a small detail, but neat nevertheless. > > > My experience so far is that performance is not noticeably slower t= han > > > master, however if someone with a slower Mac could try it that woul= d > > > be helpful. > >=20 > > I don't notice a speed difference compared to master on my slow box > > running macOS 10.6. Do we have any benchmarks that we could use to > > check? >=20 > Unfortunately I=E2=80=99m not aware of any. I=E2=80=99m tempted to say = that if there > is no clear performance penalty, then it=E2=80=99s not a problem. I tried M-x benchmark RET (redisplay) RET in master and in scratch/ns-drawing, with scratch/ns-drawing often being faster in the middle of big files like xdisp.c. But I don't remember if I messed with compiler options recently, so it would be good if somebody else could check.