[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: Syntax and Hard Newlines
From: |
Herbert Euler |
Subject: |
Re: Patch: Syntax and Hard Newlines |
Date: |
Tue, 21 Nov 2006 11:45:31 +0800 |
I would like someone to test this so I can see for sure.
I created a large file, which contains 4185181 lines that consist of
randomly generated characters as Emacs Lisp comment, and totally
204MB. The following forms are evaluated:
(let (time-diff)
(save-window-excursion
(let (old-time)
(switch-to-buffer "large_file")
(fundamental-mode)
(setq parse-sexp-lookup-properties nil
old-time (current-time))
(emacs-lisp-mode)
(setq time-diff (time-subtract (current-time)
old-time))))
time-diff)
==> (0 6 748961)
(let (time-diff)
(save-window-excursion
(let (old-time)
(switch-to-buffer "large_file")
(fundamental-mode)
(setq parse-sexp-lookup-properties t
old-time (current-time))
(emacs-lisp-mode)
(setq time-diff (time-subtract (current-time)
old-time))))
time-diff)
==> (0 6 740149)
(let (time-diff)
(save-window-excursion
(let (old-time)
(switch-to-buffer "large_file")
(fundamental-mode)
(setq parse-sexp-lookup-properties nil
old-time (current-time))
(emacs-lisp-mode)
(setq time-diff (time-subtract (current-time)
old-time))))
time-diff)
==> (0 6 727099)
(let (time-diff)
(save-window-excursion
(let (old-time)
(switch-to-buffer "large_file")
(fundamental-mode)
(setq parse-sexp-lookup-properties t
old-time (current-time))
(emacs-lisp-mode)
(setq time-diff (time-subtract (current-time)
old-time))))
time-diff)
==> (0 6 740501)
I evaluated them twice. It seems memory allocation took too long in
the first time.
Regards,
Guanpeng Xu
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
- Re: Patch: Syntax and Hard Newlines, (continued)
- Re: Patch: Syntax and Hard Newlines, martin rudalics, 2006/11/20
- Re: Patch: Syntax and Hard Newlines, David Kastrup, 2006/11/20
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/20
- Re: Patch: Syntax and Hard Newlines, martin rudalics, 2006/11/20
- Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/18
- Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/19
- Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/19
- Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/20
- Re: Patch: Syntax and Hard Newlines,
Herbert Euler <=
- Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/22
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/22
- Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/25
- Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/26
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/28
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/28
- Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/28
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/29
- Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/29
- Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/29