From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: window-scroll-functions and performance Date: Mon, 15 Aug 2011 23:28:38 +0300 Message-ID: <831uwmv2q1.fsf@gnu.org> References: <878vqu1mof.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1313440134 27142 80.91.229.12 (15 Aug 2011 20:28:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2011 20:28:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Antoine Levitt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 15 22:28:50 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 1Qt3mA-0006gc-0v for ged-emacs-devel@m.gmane.org; Mon, 15 Aug 2011 22:28:46 +0200 Original-Received: from localhost ([::1]:55552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt3m9-000357-Ju for ged-emacs-devel@m.gmane.org; Mon, 15 Aug 2011 16:28:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt3m6-000352-O4 for emacs-devel@gnu.org; Mon, 15 Aug 2011 16:28:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qt3m5-0001p9-NT for emacs-devel@gnu.org; Mon, 15 Aug 2011 16:28:42 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:42122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt3m5-0001p5-Ej for emacs-devel@gnu.org; Mon, 15 Aug 2011 16:28:41 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LPZ00200KUGSX00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Mon, 15 Aug 2011 23:28:38 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.171.158]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LPZ0029SKVPQL70@a-mtaout21.012.net.il>; Mon, 15 Aug 2011 23:28:38 +0300 (IDT) In-reply-to: <878vqu1mof.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.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:143262 Archived-At: > From: Antoine Levitt > Date: Mon, 15 Aug 2011 21:48:00 +0200 > > I'm trying to track down the cause of performance issues in erc. One > problem is with erc-scroll-to-bottom. Here's a simple test: emacs -Q, > M-x erc, accept the default, M-x erc-scrolltobottom-mode, C-l to force > scrolltobottom to act, M-x elp-instrument-package erc, press and > maintain "a" for a while, then M-x elp-results. erc-scrolltobottom gets > called a lot, and that causes noticeable slowdowns: display doesn't keep > up with input, and CPU consumption jumps. This gets my emacs to 100% CPU > just inserting text. Does the problem go away if you turn bidi-display-reordering off? Does it go away if you use Emacs 23.3? If the answer to any of these 2 questions is YES, please try to come up with a reproducible test case that doesn't involve erc, and I will take a look. Thanks.