cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Savva Kolbachev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-2083) Implement Protostuff as serialization service for Cayenne ROP
Date Thu, 05 May 2016 09:11:13 GMT
Savva Kolbachev created CAY-2083:
------------------------------------

             Summary: Implement Protostuff as serialization service for Cayenne ROP
                 Key: CAY-2083
                 URL: https://issues.apache.org/jira/browse/CAY-2083
             Project: Cayenne
          Issue Type: Improvement
          Components: ROP
            Reporter: Savva Kolbachev
            Assignee: Savva Kolbachev
             Fix For: 4.0.M4


Source: http://www.protostuff.io/
It based on protobuf but has some optimizations and some cool things like runtime serialization
graph of objects (like Hessian). So we shouldn't define proto files although it might increase
efficiency. And it work well with Java8 Date and Time types. It is also an alive project.

Here is some benchmarks. Take a look at Full Object Graph Serializers section. 
http://hperadin.github.io/jvm-serializers-report/report.html 
https://github.com/eishay/jvm-serializers/wiki

I've also forked one repo and added Hessian to comparison https://github.com/thinline72/protostuff-example

Here is my results: 
Benchmark for 1000000 objects (includes both serialization and deserialization) 
jdk : 3,428 s 
jackson : 575,2 ms 
fasterxml : 503,5 ms 
protobuf : 257,9 ms 
protostuff : 215,5 ms 
kryo : 390,5 ms
hessian : 3,234 s



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message