[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: |
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) |
In article <address@hidden>,
Ludovic Courtès <address@hidden> 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?
- Re: [PATCH] Improved `scm_from_locale_symbol ()' + `scm_take_locale_symbol ()', (continued)
- 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 ()', 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 <=