From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bogossian@mail.com Newsgroups: gmane.emacs.bugs Subject: bug#6364: Windows: Emacs 23 slow with long lines and raster fonts Date: Sun, 06 Jun 2010 14:39:35 -0400 Message-ID: <8CCD3BEBEE756DD-DB8-DFB9@web-mmc-m08.sysops.aol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1275850704 28738 80.91.229.12 (6 Jun 2010 18:58:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Jun 2010 18:58:24 +0000 (UTC) To: 6364@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 06 20:58:22 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OLL31-0008Du-5c for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Jun 2010 20:58:15 +0200 Original-Received: from localhost ([127.0.0.1]:45625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLL30-0002Im-Hu for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Jun 2010 14:58:14 -0400 Original-Received: from [140.186.70.92] (port=36734 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLL2q-0002HF-7B for bug-gnu-emacs@gnu.org; Sun, 06 Jun 2010 14:58:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLL2o-0003vx-7Y for bug-gnu-emacs@gnu.org; Sun, 06 Jun 2010 14:58:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46635) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLL2o-0003vt-68 for bug-gnu-emacs@gnu.org; Sun, 06 Jun 2010 14:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OLKmM-0007Jm-5W; Sun, 06 Jun 2010 14:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: bogossian@mail.com Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Jun 2010 18:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127584963628122 (code B ref -1); Sun, 06 Jun 2010 18:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jun 2010 18:40:36 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLKlv-0007JX-RF for submit@debbugs.gnu.org; Sun, 06 Jun 2010 14:40:36 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLKlK-0007Ip-7J for submit@debbugs.gnu.org; Sun, 06 Jun 2010 14:39:59 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:35754) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OLKlE-00047V-C8 for submit@debbugs.gnu.org; Sun, 06 Jun 2010 14:39:52 -0400 Original-Received: from [140.186.70.92] (port=35008 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLKlA-00082Q-M2 for bug-gnu-emacs@gnu.org; Sun, 06 Jun 2010 14:39:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLKl4-0001fX-CQ for bug-gnu-emacs@gnu.org; Sun, 06 Jun 2010 14:39:46 -0400 Original-Received: from imr-da02.mx.aol.com ([205.188.105.144]:43706) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLKl4-0001fS-AC for bug-gnu-emacs@gnu.org; Sun, 06 Jun 2010 14:39:42 -0400 Original-Received: from imo-da03.mx.aol.com (imo-da03.mx.aol.com [205.188.169.201]) by imr-da02.mx.aol.com (8.14.1/8.14.1) with ESMTP id o56IderB030464 for ; Sun, 6 Jun 2010 14:39:40 -0400 Original-Received: from bogossian@mail.com by imo-da03.mx.aol.com (mail_out_v42.9.) id 7.d75.9ae2e33 (34980) for ; Sun, 6 Jun 2010 14:39:36 -0400 (EDT) Original-Received: from smtprly-dc02.mx.aol.com (smtprly-dc02.mx.aol.com [205.188.170.2]) by cia-da08.mx.aol.com (v129.4) with ESMTP id MAILCIADA085-d2f44c0beb67276; Sun, 06 Jun 2010 14:39:36 -0400 Original-Received: from web-mmc-m08 (web-mmc-m08.sim.aol.com [64.12.224.141]) by smtprly-dc02.mx.aol.com (v129.4) with ESMTP id MAILSMTPRLYDC023-d2f44c0beb67276; Sun, 06 Jun 2010 14:39:35 -0400 X-MB-Message-Source: WebUI X-AOL-IP: 82.66.250.190 X-MB-Message-Type: User X-Mailer: Mail.com Webmail 31888-STANDARD Original-Received: from 82.66.250.190 by web-mmc-m08.sysops.aol.com (64.12.224.141) with HTTP (WebMailUI); Sun, 06 Jun 2010 14:39:35 -0400 X-AOL-SENDER: bogossian@mail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sun, 06 Jun 2010 14:40:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 06 Jun 2010 14:41:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37570 Archived-At: Hi, the Windows build of Emacs 23 is extremely slow when scrolling in a=20 buffer containing long lines if a bitmap font is used. For example, scrolling though a file made of 200 lines of 1000=20 characters each feels choppy. Doing the same with a file containing very long lines (like tens of=20 thousand characters) can make Emacs hang for seconds or minutes, making it=20 practically unusable. Editing files with such long lines is not absurd, various types of=20 computer generated files (log files, export files, dumps, ...) can have very very long lines. These bad performances are a regression, Emacs 21 and Emcas 22 were much faster in the same conditions. To illustrate this regression, and to show it's related to the use of=20 bitmap fonts, I've made this very simple and easy to reproduce benchmark: I built an 8MB file containing a single line (the content of the file doesn't matter). I opened the file in emacs, and then I hit "ESC >" to=20 reach the end of the buffer. I measured the time it takes for emacs to refresh from the moment I typed the macro. (Test setup: Athlon XP 2GHz, Windows XP SP3) If Emacs is started with the command line "emacs -q", here are the=20 results: Emacs 21.3.1: 8s Emacs 22.3.1: 14s Emacs 23.2.1: 63s (uniscribe backend) Emacs 23 can be made a little faster by forcing the gdi rendering=20 backend with the command line "emacs -q -xrm Emacs.FontBackend:gdi": Emacs 23.2.1: 38s (gdi backend) Now, if I repeat the same test using the command "emacs -q -fn=20 Courier", to use a bitmap font, things are getting really bad for Emacs 23: Emacs 21.3.1: 8s (raster font) Emacs 22.3.1: 14s (raster font) Emacs 23.2.1: 515s (raster font, gdi backend) Regards, Pierre PS: this issue has been discussed on the emacs-devel mailing list: http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00478.html