all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Performance problems (CPU 100%) with NULs in files
@ 2011-09-21 21:08 Ludwig, Mark
  2011-09-22  4:30 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Ludwig, Mark @ 2011-09-21 21:08 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]

I frequently encounter data files that are supposed to be 100% ASCII but contain long sequences of NUL characters (ASCII zero).  (The reasons are out of my control.)

When I first started using EMACS [sic] in 1980, I was delighted to find it served as a very fine binary file editor.  It seems that modern Emacs no longer is a fine binary file - at least not by default.

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.

I understand about encodings, and have messed around with forcing it into us-ascii, but it appears not to be related to this CPU consumption problem.  Does anyone know how to solve this?  I'll file a bug report if this is a legitimate bug.  I'm just concerned that it's a "feature" of some sort, though I hope not.

Thanks!

Mark


[-- Attachment #2: Type: text/html, Size: 3411 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-09-24 14:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-21 21:08 Performance problems (CPU 100%) with NULs in files Ludwig, Mark
2011-09-22  4:30 ` Drew Adams
2011-09-22 13:00   ` Ludwig, Mark
2011-09-22  5:44 ` Eli Zaretskii
2011-09-22 12:58   ` Ludwig, Mark
2011-09-24  0:20   ` Ludwig, Mark
2011-09-24  0:50     ` Le Wang
2011-09-24  6:04     ` Eli Zaretskii
2011-09-24 13:32       ` Ludwig, Mark
2011-09-24 14:15         ` Eli Zaretskii
2011-09-22  6:09 ` XeCycle
2011-09-22 12:58   ` Ludwig, Mark

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.