[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: why luajit doesn't use fast string optimization
- From: Patrick Donnelly <batrick@...>
- Date: Wed, 3 Sep 2014 16:44:05 -0400
On Wed, Sep 3, 2014 at 11:10 AM, Karel Tuma <kat@lua.cz> wrote:
> Excerpts from CHU Run-min's message of 2014-09-01 16:03:16 +0200:
>> http://lua-users.org/wiki/FastStringPatch
>>
>> I found this nice idea, but why luajit doesn't use this optimization?
>
> Lua 5.2 does. I plan to get this in LuaJIT working, as it paves the way for
> other funky hacks (mutable strings..).
Huh? No, Lua does not have this:
http://www.lua.org/source/5.2/lobject.h.html#Value
I believe you're thinking of the other optimization in Lua 5.3-alpha
where long strings ( > LUAI_MAXSHORTLEN) are not interned in the
string table?
--
Patrick Donnelly