[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: My wish list :) [RE: How can we make lua better?]
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 05 Jun 2002 09:17:23 -0300
> The ..= would be even more useful if leading to an internal
> optimisation: not discarding the old string to the GC and creating a new
> one, but perhaps recomputing the hash (adler32?) in place. I don't know
> internals enough to know if it is possible.
It is not, at least with the current implementation. A string may be
shared by several different variables. String assignment does not make
copies.
-- Roberto