[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symb
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()' |
Date: |
Tue, 24 Jan 2006 15:22:18 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
address@hidden (Han-Wen Nienhuys) writes:
> In article <address@hidden>,
> Ludovic Courtès <address@hidden> wrote:
[...]
>>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?
I'd say because the underlying `stringbuf' cannot be shared between a
symbol and a string.
Theoretically, it should be doable but we'd have to generalize things
like `scm_i_string_writable_chars ()' so that it works also for symbols.
Thanks,
Ludovic.
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', (continued)
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', Ludovic Courtès, 2006/01/24
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', Han-Wen Nienhuys, 2006/01/24
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', Ludovic Courtès, 2006/01/24
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', Han-Wen Nienhuys, 2006/01/24
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', Ken Raeburn, 2006/01/24
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', Ludovic Courtès, 2006/01/25
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', Ken Raeburn, 2006/01/25
- Distributed revision control, etc., Ludovic Courtès, 2006/01/25
- Re: Distributed revision control, etc., Ken Raeburn, 2006/01/25
Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', Han-Wen Nienhuys, 2006/01/24
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()',
Ludovic Courtès <=