From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#30539: 26.0; `char-displayable-p' is much slower in Emacs 25 and 26 Date: Thu, 22 Feb 2018 20:07:09 -0800 (PST) Message-ID: References: <8c79c39f-7abb-4591-a676-17fb46af5a8f@default> <923b8123-937d-4ffb-9988-5359fdcbb6bc@default> <87woz44grg.fsf@gmail.com> <87tvu84c05.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1519358898 9257 195.159.176.226 (23 Feb 2018 04:08:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2018 04:08:18 +0000 (UTC) Cc: 30539@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 23 05:08:13 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ep4eb-0001s7-6k for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Feb 2018 05:08:13 +0100 Original-Received: from localhost ([::1]:42360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ep4gb-000389-TE for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Feb 2018 23:10:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ep4fQ-0002xt-EB for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2018 23:10:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ep4eR-0007R2-5T for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2018 23:09:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ep4eQ-0007PS-Kj for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2018 23:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ep4eQ-000295-7F for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2018 23:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Feb 2018 04:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30539 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30539-submit@debbugs.gnu.org id=B30539.15193588588211 (code B ref 30539); Fri, 23 Feb 2018 04:08:02 +0000 Original-Received: (at 30539) by debbugs.gnu.org; 23 Feb 2018 04:07:38 +0000 Original-Received: from localhost ([127.0.0.1]:57009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ep4e2-00028M-0J for submit@debbugs.gnu.org; Thu, 22 Feb 2018 23:07:38 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:45536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ep4e0-000289-8w for 30539@debbugs.gnu.org; Thu, 22 Feb 2018 23:07:36 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1N479I7066311; Fri, 23 Feb 2018 04:07:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=JCz4QOCYq0D8CvDkUcFKSkZvD0CbApWOXjIfZFv4HMY=; b=C5PK/XHF98M9LAr7OujIq/lRKZSZcdtzcxzj0ol/2qOqFCrLjzoA7vDamT3rEqSciDxj zjWZuNxZFC9rujw90SiNhJCMpRNu4JCZPycv8C2CGpsF0SrHOlDY6qSPWrxAxc6PmVNZ gIyJ7NrkAGrsodcg6T7FfS1DvuMAoZyY4EC3lDbxuPQ7l4RXb05ZX8JH8tmV18/TmTPE OIUPoSn6CpkVHxHswy6x3RJozaFVJQv9lUNcS+1enfMp2O7szeuCt7/xuGBmc1RvnOfY 7AKvBRL4WWQ1iDLuV/4C+hBsSmKP94YyIU/gbprjvkBqqVGZSjt6XxELb+lWeUd2Bo/A pA== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2gabdf81mt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 23 Feb 2018 04:07:26 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w1N47NVT000621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 23 Feb 2018 04:07:24 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w1N47N84021705; Fri, 23 Feb 2018 04:07:23 GMT In-Reply-To: <87tvu84c05.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4654.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8812 signatures=668677 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802230048 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143613 Archived-At: > > Is this a bug that is likely to get fixed? >=20 > Unfortunately, no, I don't think so (at least not soon). My > understanding is that this inhibit-compacting-font-caches variable is > due to several mysterious font bugs with different users needing > different settings to work around them, and there isn't anyone who has a > good idea of how to sort it out. >=20 > > Another question is whether this bug should/will affect all > > users or only some? If the latter then I can let users > > decide whether to test `char-displayable-p' (I have an > > option for that anyway) or whether to bind > > `inhibit-compacting-font-caches to `t'. If only some users > > are affected by the bug, do we know why? Does it have to > > do with the fonts they have installed, for example? >=20 > Well, as I mentioned, I don't see it on my GNU/Linux box, so it's not > universal. I would guess the fonts installed is the main factor. I googled a bit for that variable, and there are a bunch of Emacs bugs and other posts about it. Seems like (to be confirmed) it is a problem only for MS Windows (?), and maybe only for TrueType fonts (?). And it seems like lots of folks run into it (though others do not), so that lots of people (particularly with CJK fonts?) are just systematically setting the variable to t. I do wonder what the best approach is for my library. If I knew that the problem didn't exist for non-Windows that would let me at least remove non-Windows from cases where I try to do something. I'll probably make the code, when on Windows, by default use a non-nil value of the var by default (e.g. as an option default value). But it would be good to know more about the cases where the problem can arise.