From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky 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:49:23 -0500 Message-ID: <87woz44grg.fsf@gmail.com> References: <8c79c39f-7abb-4591-a676-17fb46af5a8f@default> <923b8123-937d-4ffb-9988-5359fdcbb6bc@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519350597 6104 195.159.176.226 (23 Feb 2018 01:49:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2018 01:49:57 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 30539@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 23 02:49:53 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 1ep2Ui-0000Z8-Gc for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Feb 2018 02:49:52 +0100 Original-Received: from localhost ([::1]:42052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ep2We-0004Fg-BO for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Feb 2018 20:51:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ep2VV-00049T-Cc for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2018 20:51:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ep2Ut-00055F-Af for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2018 20:50:41 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ep2Ut-00053S-08 for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2018 20:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ep2Us-0007IW-EK for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2018 20:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Feb 2018 01:50: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.151935057628015 (code B ref 30539); Fri, 23 Feb 2018 01:50:02 +0000 Original-Received: (at 30539) by debbugs.gnu.org; 23 Feb 2018 01:49:36 +0000 Original-Received: from localhost ([127.0.0.1]:56973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ep2UR-0007Hm-QM for submit@debbugs.gnu.org; Thu, 22 Feb 2018 20:49:36 -0500 Original-Received: from mail-it0-f48.google.com ([209.85.214.48]:37885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ep2UO-0007HY-In for 30539@debbugs.gnu.org; Thu, 22 Feb 2018 20:49:33 -0500 Original-Received: by mail-it0-f48.google.com with SMTP id d10so1388298itj.2 for <30539@debbugs.gnu.org>; Thu, 22 Feb 2018 17:49:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=AO7RZXI+a8TVAPyxtO0dF3hfS683E5KHezXpGBUIJr0=; b=mWnhwucuIkJEvPtzFR4uvSjHh+o70D2Oe+4jgS9JzDb/B0NPrp5oeHlduW0g/zU1mR Oz+8q1fIZUAUS0nq9oxzk32thyfTQXpY8vOV3zLYN4YZ7pZDUvqBSx4DP7bJvtf5G9PL 5Pr/OfpJ9AX5TCbuAjWVZSCUjv46LQslE9AsOj0ETpFEmtpCo4Q+RM91c5C/GKQIcVU8 C0XLW/1mw8tFwrflnez9sdlMsGp/eTEv/2TP0clwHCiNKdsAJwfP93MmwFvTJrjy6DNF tV5zH2JEBN6coR6XJXaO6CsVPP/8qiFloOQaSpJU4ZP89IDCVQmVr30ZKYf9lDzqjqpW 2QFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=AO7RZXI+a8TVAPyxtO0dF3hfS683E5KHezXpGBUIJr0=; b=FojIV6TPIKUjk6jwCkL+4WGNxtdu/NkMW6JnFiRmIXyw/+ak4DSLHEXc2NMe7oMWe6 JR0CX/+FnrQcf6dQZFluKhzEUhcJPqb8kCbc5TaKSglykWRnMZXCKtzxXOQkZDItlapT zHCiPvEvaOtlyaoF61qH7KmrpWHwCxsladnX1gVeWzoUigfkdSbQNPST5fMbXZ8A54P7 D0W20sDDBAvPJA3WVcpNTux90kaVngVj7IJs7dU+zTKWgu/MSCqw5Mmw82IyutiX0nkA 1VOJPMUPppYmjCFJD/4HvDRLPzes4BhIY+umfWShAWURmxqHVmIbvt1V8wh0QE84GA9a dxgA== X-Gm-Message-State: APf1xPAfgvi/7tyRRppulAMkim4K++BIvOPOtwxxOaUcL40j1zOEx1Gd 54q3DzFWl0nR5vqSU3Crs7O3jg== X-Google-Smtp-Source: AG47ELsfIAw7562QNwKRKF8o6IYRGUC86aNoWgYV+q/KnVN14zEj4Sw/fe8eieqr0S30luXOkvVHIQ== X-Received: by 10.36.81.196 with SMTP id s187mr525799ita.139.1519350566656; Thu, 22 Feb 2018 17:49:26 -0800 (PST) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 202sm522121iti.19.2018.02.22.17.49.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 17:49:25 -0800 (PST) In-Reply-To: <923b8123-937d-4ffb-9988-5359fdcbb6bc@default> (Drew Adams's message of "Thu, 22 Feb 2018 06:50:34 -0800 (PST)") 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:143610 Archived-At: Drew Adams writes: > Can someone please confirm that they can repro this problem? I can reproduce on a Windows 10 box. It looks like something was being cached before, where now it's not. E.g., try the following function (char-names as defined in your throw-mule-bug-2.el). In Emacs 24, there's only one slow call. (defun my-test-each-char () (interactive) (view-echo-area-messages) (pcase-dolist (`(,name . ,ch) char-names) (read-char (format "continue? (next: %s)" name)) (let ((t0 (current-time)) dt displayable) (setq displayable (char-displayable-p ch)) (setq dt (subtract-time (current-time) t0)) (message "%s display:%s (%fs)" name displayable (float-time dt))))) Doing (setq inhibit-compacting-font-caches t) brings back reasonable performance. I can't reproduce on my GNU/Linux box, although that may just be due to different fonts installed. In particular, char-displayable-p never gave me nil.