From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#62780: 30.0.50; Redisplay gets slow when using Org tables + show-trailing-whitespace Date: Fri, 14 Apr 2023 12:52:32 +0000 Message-ID: <878reumxrj.fsf@localhost> References: <87mt3e8d50.fsf@localhost> <83y1my8bmi.fsf@gnu.org> <87h6tm8awi.fsf@localhost> <83bkjt8t4l.fsf@gnu.org> <87bkjsf72g.fsf@localhost> <83ttxk3vt8.fsf@gnu.org> <873554f2ye.fsf@localhost> <83sfd34ztm.fsf@gnu.org> <87zg7an7lq.fsf@localhost> <83ttxig375.fsf@gnu.org> <87pm86n1au.fsf@localhost> <83pm86fz2e.fsf@gnu.org> <83mt3afy90.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="865"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62780@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 14 14:51:16 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pnItY-000AcR-DN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Apr 2023 14:51:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnItO-0007nI-4g; Fri, 14 Apr 2023 08:51:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnItL-0007mH-AR for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 08:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnItK-0004yx-WD for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 08:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnItK-0007y8-EC for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 08:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Apr 2023 12:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62780 X-GNU-PR-Package: emacs Original-Received: via spool by 62780-submit@debbugs.gnu.org id=B62780.168147660630553 (code B ref 62780); Fri, 14 Apr 2023 12:51:02 +0000 Original-Received: (at 62780) by debbugs.gnu.org; 14 Apr 2023 12:50:06 +0000 Original-Received: from localhost ([127.0.0.1]:45805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnIsP-0007wj-Kp for submit@debbugs.gnu.org; Fri, 14 Apr 2023 08:50:06 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:55597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnIsM-0007w8-QD for 62780@debbugs.gnu.org; Fri, 14 Apr 2023 08:50:03 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E69D824029A for <62780@debbugs.gnu.org>; Fri, 14 Apr 2023 14:49:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681476595; bh=EGNwHoQLCAl6pj+KCFY0yyLqOqMRSa8E06/cLTKXUIo=; h=From:To:Cc:Subject:Date:From; b=YDs3lvOUlQ5Ibber0LbNQUJpg+pXDQJHkPCHt3CGqldWa+aATO/MuzpzyLpGk1k1F Nsuz7tV2SpWXmpOwQMaI6zZhvSQbVfL9Kt7ZqR8LvCNuF+P4ls/Q9UxnTj/DaW6nIr O1M/bf3THk77ZySZ+AeGjKNmsHDvtl7IQHBWMs+vXOU+AoNC4S+hZ4ouSSXilyd9Gz waZumDQtSJ3+LImy9BZMTdsB2NDRHR9GavZob0A3t5Sxzfy1fwg2o8lduRpbSms6gb R3CryFtqyQoSzWs2FBBdidd0zGhEcFFv4MmxulRPOoKHs1KTqiQG2NNEvOQE973+f5 4tmINjglHoFOw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PybrL2HyHz9rxQ; Fri, 14 Apr 2023 14:49:54 +0200 (CEST) In-Reply-To: <83mt3afy90.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259910 Archived-At: Eli Zaretskii writes: > Btw, it is not true that we are looking all the way to point-max in > this case: you will see in composition_compute_stop_pos that it limits > the search to the next 500 buffer positions: Sure. Though 500 is clearly not small enough threshold. Also, I am a bit confused about the purpose of /* Make sure the above arbitrary limit position is not in the middle of composable text, so we don't break compositions by submitting the composable text to the shaper in separate chunks. We play safe here by assuming that only SPC, TAB, FF, and NL cannot be in some composition; in particular, most ASCII punctuation characters could be composed into ligatures. */ in compute_stop_pos AFAIU, it tries hard to not stop in the middle of composed region. Then, why need to fall back to 500 in the composition_compute_stop_pos call? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at