From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Loading souce Elisp faster Date: Wed, 27 Feb 2013 13:49:31 +0900 Message-ID: <871uc2tl7o.fsf@gnu.org> References: <87liaa4wp9.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361940589 29172 80.91.229.3 (27 Feb 2013 04:49:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2013 04:49:49 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: David Engster Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 05:50:11 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 1UAYy1-0001NM-5I for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2013 05:50:09 +0100 Original-Received: from localhost ([::1]:33232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAYxg-0001BD-9k for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2013 23:49:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAYxd-0001B3-AP for emacs-devel@gnu.org; Tue, 26 Feb 2013 23:49:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAYxc-0004fd-2x for emacs-devel@gnu.org; Tue, 26 Feb 2013 23:49:45 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAYxb-0004fZ-W6 for emacs-devel@gnu.org; Tue, 26 Feb 2013 23:49:44 -0500 Original-Received: from sit3b311.cs.tsukuba.ac.jp ([130.158.83.177]:32809 helo=mongkok) by fencepost.gnu.org with esmtpa (Exim 4.71) (envelope-from ) id 1UAYxT-00058d-LI; Tue, 26 Feb 2013 23:49:36 -0500 In-Reply-To: <87liaa4wp9.fsf@engster.org> (message from David Engster on Tue, 26 Feb 2013 22:00:34 +0100) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:157418 Archived-At: In article <87liaa4wp9.fsf@engster.org>, David Engster writes: > I actually tried that, but it took *longer* with the "coding: utf-8;" > comment, which is why I thought that this is apparently not working and > some additional changes are needed first. > Here's what I tried: I took files.el from emacs/lisp and copied it to > files_utf8.el and added the "coding" comment there. Then I used this: Perhaps that's because files.el is ascii only. Without coding tag, emacs detects that the contents is ascii only, and does short cut. If utf-8 is specified, emacs skips detection, but does code conversion while verifying bytes are in valid utf-8, and this step involves convering bytes to charater array (int charbuf[CHARBUF_SIZE]), and inserting each character in charbuf into a buffer. That step may take longer time than detection step. Please try with a coding tag raw-text-unix instead of utf-8. I think it's not that difficult to improve the current code in coding.c to make utf-8 decoding/encoding firster. --- Kenichi Handa handa@gnu.org