From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taylor Venable Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: Strange slowness when killing words interactively Date: Mon, 2 May 2011 00:25:52 -0400 Message-ID: References: <87pqo1oqg2.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1304310375 18719 80.91.229.12 (2 May 2011 04:26:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 04:26:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 02 06:26:09 2011 Return-path: Envelope-to: ged-emacs-devel@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 1QGkhv-0005Jx-JE for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 06:26:03 +0200 Original-Received: from localhost ([::1]:50523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGkhu-000404-Rp for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 00:26:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGkhq-0003tH-LL for emacs-devel@gnu.org; Mon, 02 May 2011 00:25:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGkhp-0005Uu-Dd for emacs-devel@gnu.org; Mon, 02 May 2011 00:25:58 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:55371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGkhm-0005Ud-KE; Mon, 02 May 2011 00:25:54 -0400 Original-Received: by iwg8 with SMTP id 8so6299176iwg.0 for ; Sun, 01 May 2011 21:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jjMeqSBSsMu11WRISCMy9mPGoSeeDsUMo2PuQmISLgI=; b=eV7Azn6R6zjU3UMIsacdwOm7M7DdmoYkXCZUIhsjPflvorQwzfnw54L0ApxuhifeFX USRAiZlUWmsWQbnL5eZvTFQX6FU2uFhTnJ+Qw9R2f7ycZceETANMXDmJuv0hNfYc65SA P79Axf9vTfQHbTpId1h0XExhN4spQNrVkg5ok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=iXK2Xb3hZknqBPRtsCiep2zsvCLXQpx48cWi5ovbUmRC/lBwdXWrPMGvRoSQow9o+4 d8H5dWQJZAd7CgH34d/FTqY4bU9ZGJuHIqc5Jf76k/HCOBHi4ArQ/wlQs8uxU5XosDOh erY4O0q8vjI/M40EJME5OC4PhTZ1hOyeGtSS4= Original-Received: by 10.42.151.138 with SMTP id e10mr583627icw.251.1304310352931; Sun, 01 May 2011 21:25:52 -0700 (PDT) Original-Received: by 10.231.143.135 with HTTP; Sun, 1 May 2011 21:25:52 -0700 (PDT) In-Reply-To: <87pqo1oqg2.fsf@stupidchicken.com> X-Google-Sender-Auth: kZC13p-PpbJ1-ODSoQRhdNuMA0o X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138953 gmane.emacs.help:80896 Archived-At: On Sun, May 1, 2011 at 21:13, Chong Yidong wrote: > Taylor Venable writes: > >> I've found the location where the slowness creeps into kill-word and >> friends. Looking at kill-region in simple.el, the part that is very >> slow for my system is adding to the kill ring. If I comment those >> lines out (as shown in http://paste.lisp.org/+2LWP) then the sluggish >> response disappears. It's odd to me that I don't see this behaviour >> when I start Emacs with -nw as I would (perhaps naively) think that >> slowness in kill-region would be independent of what user interface is >> active. > > On a graphical terminal, kill-new calls interprogram-cut-function to set > the clipboard (or the X selection, for Emacs 23). =C2=A0That may be causi= ng > the slowdown. =C2=A0Could you set interprogram-cut-function to nil and se= e if > it makes any difference? =C2=A0If so, we need to figure out why > interprogram-cut-function is slow on your computer. Indeed, setting interprogram-cut-function to nil improves the speed dramatically to the normal levels that I see on other machines and in the console. The default value is x-select-text. The problem is also fixed by setting x-select-enable-clipboard to nil. I put my xorg log file on my website if it can be of any help: http://metasyntax.net/Xorg.0.log Thanks, --=20 Taylor C. Venable http://metasyntax.net/