lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> So, on the one hand, I think short strings are useful for a variety of
> things -- and I could see them making a noticeable improvement in GC speed
> -- and with respect to this thread they do a lot to enable a general purpose
> bitset library, but shifting the implementation to use short strings makes
> the C API noticeably harder to code against in practice even if the spec
> essentially allows it.

Although the garbage collector does not move things, the stack may be
reallocated. That would change the address of a short string...

-- Roberto