In article <[EMAIL PROTECTED]>,
Ludovic Courtès <[EMAIL PROTECTED]> 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

Reply via email to