From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Thu, 04 May 2006 08:18:02 -0400 Message-ID: <87psiuj8at.fsf-monnier+emacs@gnu.org> References: <17491.34779.959316.484740@parhasard.net> <87odyfnqcj.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146745113 26750 80.91.229.2 (4 May 2006 12:18:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 May 2006 12:18:33 +0000 (UTC) Cc: emacs-devel@gnu.org, Oliver Scholz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 04 14:18:29 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 1Fbcmm-0000Fi-BN for ged-emacs-devel@m.gmane.org; Thu, 04 May 2006 14:18:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fbcml-0002Hh-LS for ged-emacs-devel@m.gmane.org; Thu, 04 May 2006 08:18:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FbcmZ-0002Hc-3e for emacs-devel@gnu.org; Thu, 04 May 2006 08:18:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FbcmV-0002HQ-Ku for emacs-devel@gnu.org; Thu, 04 May 2006 08:18:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbcmV-0002HN-G8 for emacs-devel@gnu.org; Thu, 04 May 2006 08:18:07 -0400 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fbcn6-0005IO-Oz for emacs-devel@gnu.org; Thu, 04 May 2006 08:18:45 -0400 Original-Received: from alfajor ([70.55.147.184]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060504121805.BJNL28586.tomts25-srv.bellnexxia.net@alfajor>; Thu, 4 May 2006 08:18:05 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 0CA40D865D; Thu, 4 May 2006 08:18:02 -0400 (EDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Thu, 04 May 2006 13:57:22 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53895 Archived-At: > That's 7 lisp vars accessed from C - for decoding one character!?! > How often does this happen? > If it is only/primarily used for interactive use, I guess it doesn't matter. > Otherwise, I think those vars should be declared in C, to avoid the overhead > of interning them at run-time... I'd vote to keep the code in elisp. After all, it's there, it works, and as mentioned: there's no evidence that the decoding time of \u escapes it ever going to need to be fast. And it'll become fast in Emacs-unicode anyway, so it doesn't seem to be worth the trouble. Stefan