Re: Suggestion : Use unique string type instead of two (short and long)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Suggestion : Use unique string type instead of two (short and long)
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2019年6月17日 12:41:28 -0300
> 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