From: hanwen@byrd.xs4all.nl (Han-Wen Nienhuys)
Subject: Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()'
Date: Tue, 24 Jan 2006 11:11:19 +0000 (UTC) [thread overview]
Message-ID: <dr520n$3tg$2@sea.gmane.org> (raw)
In-Reply-To: 87vexlyp9f.fsf@laas.fr
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 895 bytes --]
In article <87vexlyp9f.fsf@laas.fr>,
Ludovic Courtès <ludovic.courtes@laas.fr> 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
next prev parent reply other threads:[~2006-01-24 11:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-19 17:23 [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()' Ludovic Courtès
2006-01-11 8:39 ` Ludovic Courtès
2006-01-24 8:14 ` Ludovic Courtès
2006-01-24 11:02 ` Han-Wen Nienhuys
2006-01-24 14:17 ` Ludovic Courtès
2006-01-24 16:18 ` Han-Wen Nienhuys
2006-01-24 17:42 ` Ludovic Courtès
2006-01-24 21:06 ` Han-Wen Nienhuys
2006-01-24 23:27 ` Ken Raeburn
2006-01-25 9:45 ` Ludovic Courtès
2006-01-25 11:18 ` Ken Raeburn
2006-01-25 13:29 ` Distributed revision control, etc Ludovic Courtès
2006-01-25 18:04 ` Ken Raeburn
2006-01-24 11:11 ` Han-Wen Nienhuys [this message]
2006-01-24 14:22 ` [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()' Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='dr520n$3tg$2@sea.gmane.org' \
--to=hanwen@byrd.xs4all.nl \
--cc=hanwen@xs4all.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).