(In reply to comment #17)
> That should be (length + 1) * sizeof(jschar), right? rs=me on followup.
I intentionally left the 1 out because it's really just an approximation anyway so I figured I'd save a cycle (which I admit is equally pointless if not more). I suppose it does hurt accuracy notably if someone allocates a million short strings, so pushed to TM as ee059a50f204.
(In reply to comment #17)
> That should be (length + 1) * sizeof(jschar), right? rs=me on followup.
I intentionally left the 1 out because it's really just an approximation anyway so I figured I'd save a cycle (which I admit is equally pointless if not more). I suppose it does hurt accuracy notably if someone allocates a million short strings, so pushed to TM as ee059a50f204.