LiangliangSui commented on issue #1619:
URL:
https://github.com/apache/incubator-fury/issues/1619#issuecomment-2104164545
```java
// org/apache/fury/meta/MetaStringEncoder.java
public MetaString encode(String input) {
if (input.isEmpty()) {
return new MetaString(input, Encoding.UTF_8, specialChar1, specialChar2,
new byte[0]);
}
Encoding encoding = computeEncoding(input);
return encode(input, encoding);
}
```
Could we judge here whether the `input` is all ASCII encoded? If not, just
return UTF-8 encoded `MetaString` directly, so that we can save time on
`computeEncoding` and `encode`.
WDYT @chaokunyang
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]