lua-users home
lua-l archive

Re: Suggestion : Use unique string type instead of two (short and long)

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


> Maybe a 32bit id is enough, because we can rearrange the id during the gc process. It’s a little complicated, but I think it’s possible.
Can you be more specific? It is easy for the GC to set a watermark
(e.g., to keep the highest/lower id still in use), but that does
not guarantee anything. We can also renumber all strings, paying
the price for a little overhead in the first comparisons after each
GC cycle.
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /