From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philippe Waroquiers Newsgroups: gmane.emacs.bugs Subject: M-x grep significantly slower in emacs 22 (compared to emacs 21) Date: Thu, 27 Sep 2007 11:50:35 +0200 (METDST) Message-ID: <200709270950.LAA16215@gull.cfmu.corp.eurocontrol.int> Reply-To: philippe.waroquiers@eurocontrol.int NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1190886673 27395 80.91.229.12 (27 Sep 2007 09:51:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2007 09:51:13 +0000 (UTC) Cc: philippe.waroquiers@eurocontrol.int To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 27 11:51:07 2007 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.50) id 1Iaq1K-0005H1-CN for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Sep 2007 11:50:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iaq1G-0007G7-Sf for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Sep 2007 05:50:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iaq1B-0007Ey-B3 for bug-gnu-emacs@gnu.org; Thu, 27 Sep 2007 05:50:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iaq19-0007Dq-Rk for bug-gnu-emacs@gnu.org; Thu, 27 Sep 2007 05:50:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iaq19-0007Dd-IT for bug-gnu-emacs@gnu.org; Thu, 27 Sep 2007 05:50:47 -0400 Original-Received: from exprod8og52.obsmtp.com ([64.18.3.86]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Iaq19-0001bA-2F for bug-gnu-emacs@gnu.org; Thu, 27 Sep 2007 05:50:47 -0400 Original-Received: from source ([193.221.170.178]) by exprod8ob52.obsmtp.com ([64.18.7.12]) with SMTP; Thu, 27 Sep 2007 02:50:43 PDT Original-Received: from HHBRUE007.hq.corp.eurocontrol.int (hhbrue007.hq.corp.eurocontrol.int [193.221.160.203]) by ecw.eurocontrol.int (8.12.10/8.12.7) with ESMTP id l8R9obH3011538 for ; Thu, 27 Sep 2007 11:50:40 +0200 (MEST) Original-Received: from FFBRUE001.cfmu.corp.eurocontrol.int ([193.58.25.51]) by HHBRUE007.hq.corp.eurocontrol.int with Microsoft SMTPSVC(6.0.3790.2499); Thu, 27 Sep 2007 11:50:37 +0200 Original-Received: from gull.cfmu.corp.eurocontrol.int ([193.221.186.140]) by FFBRUE001.cfmu.corp.eurocontrol.int with Microsoft SMTPSVC(6.0.3790.1830); Thu, 27 Sep 2007 11:50:37 +0200 Original-Received: (from wao@localhost) by gull.cfmu.corp.eurocontrol.int (8.9.3 (PHNE_34936)/8.9.3) id LAA16215; Thu, 27 Sep 2007 11:50:35 +0200 (METDST) X-OriginalArrivalTime: 27 Sep 2007 09:50:37.0485 (UTC) FILETIME=[DB31D5D0:01C800EB] X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:16626 Archived-At: M-x grep (on a big file) is much slower with emacs 22 than with emacs 21. I verified this on an emacs 22 compiled on hp-ux and on emacs 22 compiled on gnu/linux. The grep returns about 1900 lines. performances on gnu-linux (x86, 3 GHz) (elapsed time) emacs 21: +-2 seconds emacs 22: +-10 seconds performances on hp (pa-risc workstation, 400 Mhz) (elapsed time) emacs 21: +-10 seconds emacs 22: +-82 seconds While the M-x grep was running (for the hp test), I used the "top" command to see what was going on. grep was sleeping most of the time, and emacs was sleeping then running then sleeping then running. The proportion of sleep time was significant (I would say: about 80% of the time sleeping). Note that it is not the grep itself that takes the time, here is the time taken by the grep on hp: wao@gull: time grep FILE: tacot1* | wc 1905 24765 250652 real 0m0.78s user 0m0.63s sys 0m0.12s wao@gull: In GNU Emacs 22.1.1 (hppa1.1-hp-hpux11.11, Motif Version 2.1.0) of 2007-09-21 on steer Windowing system distributor `Hewlett-Packard Company', version 11.0.600000 configured using `configure 'hppa1.1-hp-hpux11.11' '--prefix=/cm/ot/TOOL/GNU!ESF.EMACS_STUFF/build_G!67.IP.11/generated' '--exec-prefix=/cm/ot/TOOL/GNU!ESF.EMACS_STUFF/build_G!67.IP.11/generated/libexec/emacs-22.1' '--mandir=/cm/ot/TOOL/GNU!ESF.EMACS_STUFF/build_G!67.IP.11/generated/man' '--with-gcc=no' '--with-xpm' '--with-x11r6' '--with-x-toolkit=motif' '--x-libraries=/usr/lib/X11R6:/usr/contrib/X11R6/lib' 'build_alias=hppa1.1-hp-hpux11.11' 'host_alias=hppa1.1-hp-hpux11.11' 'target_alias=hppa1.1-hp-hpux11.11' 'CFLAGS=-Ae +O2 +DA1.1' 'LDFLAGS= -L/cm/ot/TOOL/GNU!ESF.EMACS_STUFF/build_G!67.IP.11/generated/work/emacs-22.1/xpm-3.4k/lib' 'CPPFLAGS=-I/cm/ot/TOOL/GNU!ESF.EMACS_STUFF/build_G!67.IP.11/generated/work/emacs-22.1/xpm-3.4k '' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: nil Major mode: Lisp Interaction Minor modes in effect: iswitchb-mode: t show-paren-mode: t which-function-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: Recent messages: Loading cl-macs...done Loading gnuserv-compat...done isearch-forwardisearch-backwardisearch-forward-regexpisearch-backward-regexpquery-replacequery-replace-regexpreplace-regexpreplace-string Loading gnat-fix-error...done Loading version_emacs_startup...done Loading /cm/ot/TOOL/GNU!ESF.EMACS_STUFF/build_G!67.IP.11/generated/share/emacs/22.1/site-lisp/emacs_startup.el (source)...done Loading easy-mmode...done Loading cl-seq...done For information about the GNU Project and its goals, type C-h C-p. Loading emacsbug...done -- Philippe WAROQUIERS Eurocontrol - Central Flow Management Unit philippe.waroquiers@eurocontrol.int Rue de la fusee, 96 Tel: +32 2 729 97 35 1130 Brussels Fax: +32 2 729 90 22 Belgium ____ This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender.