emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs `hangs' when doing `replace-string' in 46 MB file


From: Reiner Steib
Subject: Re: Emacs `hangs' when doing `replace-string' in 46 MB file
Date: Thu, 11 Nov 2004 19:01:12 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

On Thu, Nov 11 2004, Christian Schlauer wrote:

> But I was able to reproduce the hanging by copying the following line
> a little more than 800000 times:
>
> 0,643680      0,000139        -0,000458       0,000000        1,000000
>
> Then I ran `M-x replace-string RET , RET .', and went home. On the
> next morning (that is, more than 14 hours later), Emacs was still
> running, but I could only see the frame borders, the frame contents
> wasn't `redrawn' after logging in again. I checked the Windows task
> manager: Emacs consumed about 180 MB of memory, had used 2 h 28 min
> CPU time, and the CPU load was between 0 % and 13 %. But this time,
> there was no frame flashing or beeping.
>
> Maybe someone can reproduce this under GNU/Linux? It takes less than 5
> minutes to yank the above line 800000 times on a PIII/800 MHz ;-)

It takes only a few seconds...

(defun rs-tst ()
  (interactive)
  (let ((l "0,643680\t0,000139\t-0,000458\t0,000000\t1,000000\n")
        (i 1))
    (while (> 800100 i)
      (setq i (1+ i))
      (insert l))))

The replace-string finished after consuming only two minute of CPU
time on GNU/Linux (on an AMD with 1000 MHz).  It needs about 50 MB of
memory.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]