[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Mutable strings (was: VM object types) (was: various other posts)
- From: Tony Finch <dot@...>
- Date: Fri, 13 Jul 2007 20:03:12 +0100
On Fri, 13 Jul 2007, Rici Lake wrote:
>
> All of this is based on my theory that the cost of interning
> long strings is not the interning per se, since the Lua hashing
> function only examines a maximum of 32 characters.
It'll still pull the whole string into the cache if it's 2KB long or less,
because a cache line is (usually) 64 bytes.
Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
FAEROES: VARIABLE 3 OR 4. SLIGHT OR MODERATE. RAIN. MODERATE OR GOOD,
OCCASIONALLY POOR.