From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Variable pitch text filling Date: Sat, 04 Dec 2021 20:00:14 +0100 Message-ID: <87ilw46vr5.fsf@gnus.org> References: <87ilwft1ph.fsf@gnus.org> <87ee6wanra.fsf@gnus.org> <83r1awse4k.fsf@gnu.org> <87sfvc8kdw.fsf@gnus.org> <83czmgs7t1.fsf@gnu.org> <87k0go8ios.fsf@gnus.org> <83bl20s2dp.fsf@gnu.org> <87wnkojmny.fsf@gnus.org> <837dcos1oy.fsf@gnu.org> <87o860jm27.fsf@gnus.org> <831r2ws0jf.fsf@gnu.org> <87fsrcjkik.fsf@gnus.org> <83ee6uao67.fsf@gnu.org> <83sfva92vo.fsf@gnu.org> <83czme85xk.fsf@gnu.org> <877dclzoeo.fsf@gnus.org> <83pmqd7a3j.fsf@gnu.org> <87fsr9orjc.fsf@gnus.org> <838rx07q7g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12354"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: tumashu@163.com, casouri@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 04 20:01:27 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtaHn-00033E-Jp for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 20:01:27 +0100 Original-Received: from localhost ([::1]:37638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtaHl-00053I-GV for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 14:01:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtaGp-0004HT-Nh for emacs-devel@gnu.org; Sat, 04 Dec 2021 14:00:27 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=57656 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtaGn-0007ML-CN; Sat, 04 Dec 2021 14:00:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=c2IrdtN4xsBngcNZJdFcaN30EC92cILmZ2tzCuIhTlo=; b=Xwb6Y4IiJx0pg9GVbXSqCSPXbN 8FyZKxJ+dK6V31jPiv4PKasOlfZSTF90EdTNfNDXM72W+p9n0XooJmYC6EYGX8kgn0s43TVkkBFuE UIGMdteU7X4zmk4ipyMMJmdBLaVQ/VYMPGaGv9DpgWKcreu0iJLk5OEOuKnUe/ZPzCUs=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtaGf-0007yU-Up; Sat, 04 Dec 2021 20:00:21 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEUmKRpaTTSujlX/ ///X3dOHAAAAAWJLR0QDEQxM8gAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB+UMBBIpNyOW Fz0AAAGSSURBVCjPLdExb+sgEADgu8pY72VyJfMkd3tj8yvsKHToRCqwVE8dbCnlV3TqnDyZDJ06 mCrwK98dDov9AXccBwAAupQu3reQByEFq1c8pOi91Qj49Tr4ZGkYCugb65O3va5pj6mUSjNoscag chSNdk0nHf+IG3z+VCtSVBSRg4SNQ/8NoAAX+DPXaBdUe8KyuZh6PwpRMLb9DP0iHws+1IUBCZGi VRlcwkvQhAbK+G+GhirlzH0MFiZrBVd28caCnI3kY9GbCC9ze2gJ22QmtPuD0YT0NRtsoNYarpiG YOCXmJSA6104LJYuOFUSYnlSRwN3qukk+FL1R4NiLulU81faUNe/p1eLoN7k4KFqJLUN3gkWqm3J 7bi+3esJqrQ5MfRBW+jScAPVuQsuo+aV5yUj1ve6g01037wyYksY3Zy34UmIrc5YAD9E4ZRbVrSy cM0N1Pji+J4TjBljSKcbavg5J07ArZPtT5euDKpWdlGs4NfqlsfEmQLj5RwyImP3GRLP8kPj0/M5 8aznuz+5HeM/PQGRf75mSO8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMTItMDRUMTg6NDE6NTUr MDA6MDBcmXhmAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEyLTA0VDE4OjQxOjU1KzAwOjAwLcTA 2gAAAABJRU5ErkJggg== X-Now-Playing: Tom Waits's _The Heart Of Saturday Night_: "Please Call Me Baby" In-Reply-To: <838rx07q7g.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Dec 2021 10:02:27 +0200") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280933 Archived-At: Eli Zaretskii writes: > Actually, CJK users are likely to turn this on globally. Yeah, I guess. But I think it's acceptable to get a slowdown for an optional setting. Outside of CJK settings, it's likely that things that use a tabulated display would set this to avoid having glitches when showing CJK characters -- but we'd only insert the spacing glyphs when we see some CJK characters, so it should be OK there, too. >> But I don't know how to benchmark this. > > Write some Lisp to add a (space :width (1)) display spec on every > second letter of a large buffer, and then scroll through it one line > at a time, calling redisplay after each scroll. You'd probably need > to disable double-buffering, to avoid its skewing the results. Some > of the slowdown will be due to processing the display properties, but > if we care about that, we could measure just that separately and > subtract. I think it's likely that the `display' handling would greatly overwhelm the benchmark, so perhaps the only way to get a realistic benchmark is to implement it and see. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no