Comments (6)
@LiangliangSui Thanks for bringing that up, can I submit another PR to correct that/add unit tests? I also think it would be optimal to have the ASCII check early and just directly return a UTF-8 encoded MetaString
.
from incubator-fury.
Hi @chaokunyang I'd like to contribute to Apache Fury, can you please assign this issue to me?
from incubator-fury.
Great! thanks for the willingness to contribute to Fury.
from incubator-fury.
// 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
from incubator-fury.
In addition, we also need to add unit tests to cover this issue
from incubator-fury.
can I submit another PR to correct that/add unit tests?
Sure, that is great!
from incubator-fury.
Related Issues (20)
- NullPointerException when serializing a custom type HOT 11
- Concerning license in the javadoc jar HOT 2
- it's a bit troublesome to install on apple systems. error: externally-managed-environment...... HOT 2
- [java] jit code of collection with abstract class deserialize error HOT 4
- Enum equality does not work across serialization-deserialization HOT 5
- Mac install using “conda install -c conda-forge pyarrow” command is completed, how to set pyarrow of environment variables?
- [Doc] Use a script to update documentation when code is modified
- [Rust] Please publish fury for rust to crates.io HOT 1
- dubbo-serialization-fury allowList/allowListPrefix doesn't take affect
- Fury 0.5.1 is not backward compatible with 0.5.0 HOT 2
- Fury 0.5.1 Deserialize Error HOT 1
- Scala object type field serialization failure
- [Java] Implement zstd based compressor for type metadata HOT 2
- [scala]Can furry support serializing Seq collections and case classes in Scala, and then deserializing the resulting objects into corresponding Java objects in Java? HOT 1
- [JavaScript] Type Forward/Backward compatible object serialization for Fury JavaScript
- [JavaScript] Implement the object metadata compression protocol
- [JavaScript] Support generating deserializers based on the type metadata parsed during deserialization
- [JavaScript] Implement metadatascoped share mode
- [JavaScript] Support encoding field names with varint in type metadata
- [Rust] About Enum Naming HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-fury.