From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taylor Venable Newsgroups: gmane.emacs.help Subject: Strange slowness when killing words interactively Date: Tue, 26 Apr 2011 21:30:26 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1303867841 4258 80.91.229.12 (27 Apr 2011 01:30:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2011 01:30:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 27 03:30:36 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QEtaO-0002C1-EP for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Apr 2011 03:30:36 +0200 Original-Received: from localhost ([::1]:57629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEtaO-0008Lz-03 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Apr 2011 21:30:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEtaG-0008Lu-R3 for help-gnu-emacs@gnu.org; Tue, 26 Apr 2011 21:30:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEtaF-0003yg-Oz for help-gnu-emacs@gnu.org; Tue, 26 Apr 2011 21:30:28 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:61099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEtaF-0003yc-KL for help-gnu-emacs@gnu.org; Tue, 26 Apr 2011 21:30:27 -0400 Original-Received: by iwg8 with SMTP id 8so1402983iwg.0 for ; Tue, 26 Apr 2011 18:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=9p8OE3bVT6+woNs97mV4UPavHtuMgo/v3E+g9vyIXOI=; b=iN9QM28BqVqYbdarj+/erRxOYpXHmwepGZxc8eR4MLRtu5BmFY0neiAHsDYDflNyj9 PEvdQNfENlrPSGbOlpn7f7L3F/2Yv/gdy04M16JF+mSxZuH79Koh1r2WwMKc9Z91Q4xt KYI96WCj8zpA1QK8YRamL9u5CLhtSEBHJv4vU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=WWBANMacSfFM6yls0mOLf15oIsOjHD7UttqD4YkGeK5gdSSY6G3cVJ0LxH1D8YsKIL hE/rVIMnT2Wq/GOtuILMoOUjma/U4Pt/RcjUQW7tX+jeC3j3wgU3l6hl5Jt38D06GBhc HagXZA42La6yIIUms51mDANhp5Dy1n7VOvHDo= Original-Received: by 10.231.96.144 with SMTP id h16mr1179103ibn.182.1303867826297; Tue, 26 Apr 2011 18:30:26 -0700 (PDT) Original-Received: by 10.231.199.211 with HTTP; Tue, 26 Apr 2011 18:30:26 -0700 (PDT) X-Google-Sender-Auth: jamfJAdRd6E_Hci6yLHejfnk7zE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80856 Archived-At: Hi, I'm having a strange problem with C- (backward-kill-word) and looking for some help in trying to debug it. When I use this keystroke, the CPU usage spikes. The same goes for C- (forward-kill-word) or any other key that I bind to either of these functions. Other functions, such as backward-kill-sexp and backward-kill-sentence, are similarly problematic. As a result, when I hold the key down, my high repeat rate makes Emacs unresponsive for a second until whatever is slowing down catches up. It happens with the GTK GUI, but not with the text user interface. None of my other machines have this behaviour with the same version of Emacs (that includes one machine which is running the same distribution [Arch Linux] with the same packages). No other programs on this system are affected by performance problems when deleting words of text from a block. The problem occurs with and without using -q. There does not seem to be the same problem if I run the kill function itself with C-u; for example, C-u 1000 backward-kill-word is instant. What's the best way to profile this and figure out where my CPU cycles are being eaten? Thanks for any help, my version information is below. I built from fully updated bzr trunk tonight. M-x emacs-version GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.1) of 2011-04-26 gcc --version gcc (GCC) 4.6.0 20110415 (prerelease) uname -a Linux system76 2.6.38-ARCH #1 SMP PREEMPT Sun Apr 17 15:18:58 CEST 2011 x86_64 Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz GenuineIntel GNU/Linux -- Taylor C. Venable http://metasyntax.net/