Hi all,
my reading of R5RS allows symbol-string to be implemented more
efficiently - though not as safe:
procedure: (symbol-string symbol)
Returns the name of symbol as a string. ... It is an error to apply
mutation procedures like string-set! to strings returned by this
procedure.
I'm
Wed, 10 Dec 2008 12:59:57 +0100, Joerg.Wittenberger wrote:
In my case the following definition (in the lowest level module of my
app) gains me a factor of two in runtime!!
(global-set! 'symbol-string
(lambda (s)
(##sys#check-symbol s 'symbol-string)
(##sys#symbol-string s)))
I have
Hi all.
Here is an excerpt from a chicken-profile for one of my programs:
procedure calls seconds average percent
---
...
symbol-compare 1058128414 3467.563
On Mon, 23 Oct 2006, [EMAIL PROTECTED] wrote:
[...] I looked at the definition of symbol-string and found out that it
is not a constant operation (like returning some pointer) but constructs
a string. Does anyone have a more efficient comparison of symbols
implemented? [...]
Hello,
as far
Hello Thomas.
If you want alphabetic ordering, you should avoid symbol-string, because
it copies the name of the symbol to a new string -- this is necessary as
Scheme's strings are mutable objects!
With some exceptions, like ... symbol-string :-)
It is an error to apply mutation procedures
On 10/23/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hello Thomas.
If you want alphabetic ordering, you should avoid symbol-string, because
it copies the name of the symbol to a new string -- this is necessary as
Scheme's strings are mutable objects!
With some exceptions, like ...