From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Split `simple.el'? Date: Thu, 5 Apr 2018 10:25:27 -0700 (PDT) Message-ID: References: <5f1e960c-483f-4902-b4c2-b7a4ca3b04f4@default> <10c96362-297f-db97-d4a9-da3d66d4dd34@cs.ucla.edu> <83in974gwf.fsf@gnu.org> <83zi2j2hp4.fsf@gnu.org> 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 1522949062 25627 195.159.176.226 (5 Apr 2018 17:24:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2018 17:24:22 +0000 (UTC) Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 05 19:24:18 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 1f48cT-0006XZ-E6 for ged-emacs-devel@m.gmane.org; Thu, 05 Apr 2018 19:24:17 +0200 Original-Received: from localhost ([::1]:43682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f48eY-0004sF-KQ for ged-emacs-devel@m.gmane.org; Thu, 05 Apr 2018 13:26:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f48dn-0004rl-7w for emacs-devel@gnu.org; Thu, 05 Apr 2018 13:25:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f48dm-0003Mt-Ey for emacs-devel@gnu.org; Thu, 05 Apr 2018 13:25:39 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:44286) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f48di-0003Kj-Jn; Thu, 05 Apr 2018 13:25:34 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w35H3mBt196017; Thu, 5 Apr 2018 17:25:31 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=41xzN6Cka9gYipyLSdGSY3SPOaPQ4PQh7ZvDSFH6O/Y=; b=CVpoKY7vB+QOGyBo2EJ1s0D/0yCMRTUZKfbef8R85yKHItpQpSTVqNjcM2oK1/pRLHkg HsjdRBsUSz/EWtXchM1muK8/tsP6G+6e3bQZY9n2J2prv8a1PsR0Tu+AVDBXgVASPB7Y wqzd+V9pBm/1pj0nNYigQ1Py9upA31gd7Ovt+I1BDJLrVYtWh5fszsNP9Qj5vShWFGlO thR1iQSVzpqK8r1tlK9xVMoJgn8cRZKrGooeLGxoXImbty1pbdt0dsj7ry9N0QBzBymF QQYyGrsL6WR8eKioV8zAuFvji3vTrC7GyhqHMtEAjl13mIgXi9yFUiwZGNeEtfo24qzi FQ== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2h5k57sm7a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 05 Apr 2018 17:25:31 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w35HPU6q002363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Apr 2018 17:25:30 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w35HPSne027915; Thu, 5 Apr 2018 17:25:29 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8854 signatures=668697 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=865 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804050176 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.86 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:224367 Archived-At: > In reply to John's question about `C-h h' times, I noted: > > How long does that take for you? > emacs -Q: 1 min 15 sec > my setup: 1 min 30 sec >=20 > But wrt visiting simple.el, where with my setup I see a > slowdown (~2 minutes) even without going to the part of > the file that has the problematic defcustom, with > `emacs -Q' I do not see that same problem - there I see > a slowdown only when trying to show the defcustom. I understand the problem now, I think. With my setup I automatically fit frames with buffers to their text. This happens after the buffer is visited (and thus displayed). The frame-fitting code moves point through the buffer, at eol (`end-of-line'), within a `save-excursion', to get the longest line length. That movement presumably means that fonts are looked for to render the chars in each line. Not yet sure what is the best way to work around this, but that's the explanation why, with my setup but not with emacs -Q, I see a slowdown before the user even tries to display that problematic part of the file. So no particular bug, it seems. Behind the scene I'm doing the equivalent of going to that problematic defcustom, even though I don't see it displayed.