From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Warsaw Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Mon, 25 Feb 2013 16:17:21 -0500 Organization: Damn Crazy Followers of the Horn Message-ID: <20130225161721.655c271f@anarchist.wooz.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/a71/XLnFLkOiywNCBzHkhCW"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1361827059 26443 80.91.229.3 (25 Feb 2013 21:17:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 21:17:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 22:18: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 1UA5Qw-0007Hs-2p for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 22:18:02 +0100 Original-Received: from localhost ([::1]:57890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA5Qb-0003un-7f for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 16:17:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA5QY-0003sr-IZ for emacs-devel@gnu.org; Mon, 25 Feb 2013 16:17:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA5QV-00067f-DH for emacs-devel@gnu.org; Mon, 25 Feb 2013 16:17:38 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:57425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA5QV-00067O-6k for emacs-devel@gnu.org; Mon, 25 Feb 2013 16:17:35 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UA5Qm-00079C-S8 for emacs-devel@gnu.org; Mon, 25 Feb 2013 22:17:52 +0100 Original-Received: from mail.wooz.org ([216.15.33.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Feb 2013 22:17:52 +0100 Original-Received: from barry by mail.wooz.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Feb 2013 22:17:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mail.wooz.org X-Newsreader: Claws Mail 3.8.1 (GTK+ 2.24.16; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:157345 Archived-At: --Sig_/a71/XLnFLkOiywNCBzHkhCW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Feb 24, 2013, at 08:40 PM, Stefan Monnier wrote: >It used to be the case that compiling one's .emacs was silly because it >provided no measurable speed difference. But nowadays this is not true >any more: loading a source Elisp file is significantly slower because it >goes through load-with-code-conversion. I didn't know that, and it's a shame for me because I've loaded all my personal emacs files as source since the beginning of time (makes it easier= to integrate them with revision control systems). >So basically, all we need to do is to be able to easily recognize "Elisp >source in utf-8 encoding". One way to do that would be to use >a BOM-like marker, e.g. start utf-8 Elisp files with "\ufeff" either at >the very beginning of the file or right after a semi-colon (for better >backward compatibility). Stephen's suggestion of assuming utf-8, with -*- overriding and warnings if the end of file encoding landmarks don't match seems reasonable to me. Cheers, -Barry --Sig_/a71/XLnFLkOiywNCBzHkhCW Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJRK9ThAAoJEBJutWOnSwa/BAEP/3Ljp/EGr1w0L9QP4yVZHguK d2kfhpXo05b7lkvxa+4je8ayVSscuR0ZshSeUxJcRTc+XVrVTLKU+VUfcjfOP9oB fTO7e3/AELAGVZK0pOGHpSgefEYD6T84z87xbJL5wrCsHoXjKGQD/xfrNCvydSVy WVOA4yyeC70tpeFWoaAmcJwvX/kogea+Qj3mlmJpZONbfWw4myAz8DZWem+iLVVO 8Hp2M1SwfOSyZc5HL1XQvWrKj9iRau8akzMJKRiR4Wr3V67xNlgk5nM2gddR0gTg owR+8/0IKgTvCCyR1FRkpnW7sxEN88CrTbSIauzTve3+TnIh1CzOvoQJIDif44UC RPocVyQW+sC8XFUtBOWmFcDmfJFHbIBpxHDOLGqrlMIOo+XkDdnHMINuVxXDAjHo 0vz2mJG+Kf4e06AskcW2oXHXsLOzcRYOHqWmlE4wdSzrhWKhv+N7tLWmFkLHQToJ xozNBDB5lWKIrW8jdpaXLQpQo0DqZG5CTJK4UXTpQW4E7zBtZe98NYwGphtTKD+K aMWCUR4O2s140SHriu7LbFX8ffCBFGCp27gYu5cqL0UoHmp5/jxJewqOlmWrdTV1 4mJWz7p+EbNQUyXMGxujl/038cMU+nv83j8SWVtn0xayADNh0wAqTv7ymlIFegYr cRSqkf6XWyKQ1vO3u9S1 =JlPN -----END PGP SIGNATURE----- --Sig_/a71/XLnFLkOiywNCBzHkhCW--