2019独角兽企业重金招聘Python工程师标准>>>
java序列化(七) - fst 序列化
github
https://github.com/RuedigerMoeller/fast-serialization
实践
https://gitee.com/mengzhang6/serializable-demo.git
maven依赖
de.ruedigermoeller
fst
2.57
开始上手
// ! reuse this Object, it caches metadata. Performance degrades massively
// if you create a new Configuration Object with each serialization !
static FSTConfiguration conf = FSTConfiguration.createDefaultConfiguration();
...
public MyClass myreadMethod(InputStream stream) throws IOException, ClassNotFoundException
{
FSTObjectInput in = conf.getObjectInput(stream);
MyClass result = in.readObject(MyClass.cla