Closed CyrusNajmabadi closed 3 years ago
Andrew pointed out a good optimization to add here. We shoudln't call GetByteCount on huge strings that certainly will never have a utf8 encoding that is within our threshold.
FYI @ericsink . This woudl be a good optimization to prevent expensive work if peopel are inserting large strings.
Yes. I thought I added a positive comment on this yesterday, but alas, it's not here. :-(
Andrew pointed out a good optimization to add here. We shoudln't call GetByteCount on huge strings that certainly will never have a utf8 encoding that is within our threshold.