From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Mon, 25 Feb 2013 16:51:36 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1361829100 14978 80.91.229.3 (25 Feb 2013 21:51:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 21:51:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 22:52:03 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UA5xq-0001Fd-N7 for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 22:52:02 +0100 Original-Received: from localhost ([::1]:50654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA5xV-000301-Ve for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 16:51:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA5xT-0002z3-Eh for emacs-devel@gnu.org; Mon, 25 Feb 2013 16:51:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA5xS-0008CK-2R for emacs-devel@gnu.org; Mon, 25 Feb 2013 16:51:39 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:39040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA5xR-0008CC-UV for emacs-devel@gnu.org; Mon, 25 Feb 2013 16:51:37 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UA5xQ-0008Le-Tr; Mon, 25 Feb 2013 16:51:36 -0500 In-reply-to: (message from Stefan Monnier on Mon, 25 Feb 2013 10:19:06 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157350 Archived-At: The fast path (used by elc) parses the data straight from the file, whereas the slow path loads the file into a buffer (which includes any decoding if needed) and only then passes the resulting byte-stream to the parser. If the coding system were known in advance to be utf-8, it would still need to be read into a buffer, decoded, and parsed from there. You can see how fast this would be by putting a coding tag on the file. How fast is it, compared with reading source without the coding tag? How fast is it, compared with reading the compiled file? -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call