From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Performance problems (CPU 100%) with NULs in files Date: Thu, 22 Sep 2011 01:44:37 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1316670287 10432 80.91.229.12 (22 Sep 2011 05:44:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2011 05:44:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 22 07:44:43 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 1R6c5T-0001Uw-GQ for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 07:44:43 +0200 Original-Received: from localhost ([::1]:59508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6c5S-0003sz-TO for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 01:44:42 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6c5O-0003sj-Pe for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 01:44:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6c5N-0008Sp-S7 for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 01:44:38 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6c5N-0008Sl-PK for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 01:44:37 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R6c5N-0007s4-N6 for help-gnu-emacs@gnu.org; Thu, 22 Sep 2011 01:44:37 -0400 In-reply-to: (ludwig.mark@siemens.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:82286 Archived-At: > From: "Ludwig, Mark" > Thread-Topic: Performance problems (CPU 100%) with NULs in files > Date: Wed, 21 Sep 2011 21:08:42 +0000 > > What happens is that as I scroll through the file, when the NULs are visible, Emacs gets into some intensive processing for a long time (minutes, sometimes!). It eventually unwinds and repaints the display, but any movement of point sends it into this loop again. I have found that M-< or M-> will quickly reposition away from the problem (assuming the beginning and/or end of the file do not contain NULs). Most other movement operations send it into the loop. Does it help to visit such files without code conversions, i.e. M-x find-file-literally RET FILENAME RET ? If not, please file a bug report and attach to it an example file that causes this slowdown.