From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Re: Patch: Syntax and Hard Newlines Date: Tue, 21 Nov 2006 11:45:31 +0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1164080764 8820 80.91.229.2 (21 Nov 2006 03:46:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Nov 2006 03:46:04 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 21 04:46:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmMa1-0005Bj-SI for ged-emacs-devel@m.gmane.org; Tue, 21 Nov 2006 04:45:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmMa1-0000nr-CH for ged-emacs-devel@m.gmane.org; Mon, 20 Nov 2006 22:45:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmMZo-0000nc-Ur for emacs-devel@gnu.org; Mon, 20 Nov 2006 22:45:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmMZm-0000nQ-Ie for emacs-devel@gnu.org; Mon, 20 Nov 2006 22:45:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmMZm-0000nM-Cc for emacs-devel@gnu.org; Mon, 20 Nov 2006 22:45:38 -0500 Original-Received: from [65.54.246.84] (helo=bay0-omc1-s12.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GmMZi-0000Lu-S4; Mon, 20 Nov 2006 22:45:35 -0500 Original-Received: from hotmail.com ([64.4.26.30]) by bay0-omc1-s12.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 20 Nov 2006 19:45:33 -0800 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 20 Nov 2006 19:45:32 -0800 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Tue, 21 Nov 2006 03:45:31 GMT X-Originating-IP: [216.145.54.158] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: rms@gnu.org, monnier@iro.umontreal.ca X-OriginalArrivalTime: 21 Nov 2006 03:45:32.0897 (UTC) FILETIME=[7EFC7510:01C70D1F] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62587 Archived-At: >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/