From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: hanwen@byrd.xs4all.nl (Han-Wen Nienhuys) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()' Date: Tue, 24 Jan 2006 11:11:19 +0000 (UTC) Organization: LilyPond development Message-ID: References: <87vexlyp9f.fsf@laas.fr> Reply-To: hanwen@xs4all.nl NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1138102877 12343 80.91.229.2 (24 Jan 2006 11:41:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2006 11:41:17 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jan 24 12:41:16 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F1MXu-0005Qt-M8 for guile-devel@m.gmane.org; Tue, 24 Jan 2006 12:41:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1MWd-0005XC-12 for guile-devel@m.gmane.org; Tue, 24 Jan 2006 06:39:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F1MG2-00047C-M4 for guile-devel@gnu.org; Tue, 24 Jan 2006 06:22:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F1M8L-0001dp-BA for guile-devel@gnu.org; Tue, 24 Jan 2006 06:14:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1M86-0001bE-70 for guile-devel@gnu.org; Tue, 24 Jan 2006 06:14:31 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1F1MCz-0008PM-TN for guile-devel@gnu.org; Tue, 24 Jan 2006 06:19:34 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F1M5J-00078y-U1 for guile-devel@gnu.org; Tue, 24 Jan 2006 12:11:37 +0100 Original-Received: from muurbloem.xs4all.nl ([213.84.26.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jan 2006 12:11:37 +0100 Original-Received: from hanwen by muurbloem.xs4all.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jan 2006 12:11:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: guile-devel@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: muurbloem.xs4all.nl X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: hanwen@byrd.xs4all.nl (Han-Wen Nienhuys) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5613 Archived-At: In article <87vexlyp9f.fsf@laas.fr>, Ludovic Courtès wrote: >Hi, > >The patch below does two things: > >1. It introduces `scm_take_locale_symbol ()'. > >2. It modifies `scm_from_locale_symbol ()' so that it doesn't create a > Scheme string to do the job. > >This second modification has a nice effect: it can significantly reduce >the number of objects created at load-time. Unfortunately, Guile's >built-in reader always produces Scheme strings (in `scm_read_token ()') >so it cannot benefit from this optimization. Why isn't it possible to write a take_symbol_from_string() which takes the C-string inside the SCM string, and sets the data of the SCM string to NULL? Or am I missing wrt to shared strings? _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel