SerialisationComparison

443 views
Skip to first unread message

JohnLon

unread,
Apr 23, 2012, 6:39:08 PM4/23/12
to java-serialization-benchmarking
Hi is there a comparison to hand cranked Externalisable
serialisation / deser?

Thanks John



FYI we are finding that some serialisation tech doesn't work for us.
Eg protostuff-runtime has problems with Scala enums and Option None.

Tatu Saloranta

unread,
Apr 23, 2012, 8:30:40 PM4/23/12
to java-serializat...@googlegroups.com
On Mon, Apr 23, 2012 at 3:39 PM, JohnLon <john.l...@gmail.com> wrote:
> Hi is there a comparison to hand cranked Externalisable
> serialisation / deser?

Yes, that's the first codec in there -- straight-forward manual
DataOutputStream variant.

-+ Tatu +-

David Yu

unread,
Apr 23, 2012, 10:31:13 PM4/23/12
to java-serializat...@googlegroups.com
You might wanna check out https://github.com/scalastuff/scalabeans/.  Underneath it uses protostuff to ser/deser scala runtime objects.


--
You received this message because you are subscribed to the Google Groups "java-serialization-benchmarking" group.
To post to this group, send email to java-serializat...@googlegroups.com.
To unsubscribe from this group, send email to java-serialization-be...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/java-serialization-benchmarking?hl=en.




--
When the cat is away, the mouse is alone.
- David Yu

Tatu Saloranta

unread,
Apr 23, 2012, 11:19:21 PM4/23/12
to java-serializat...@googlegroups.com
On Mon, Apr 23, 2012 at 7:31 PM, David Yu <david....@gmail.com> wrote:
>
>
> On Tue, Apr 24, 2012 at 6:39 AM, JohnLon <john.l...@gmail.com> wrote:
>>
>> Hi is there a comparison to hand cranked Externalisable
>> serialisation / deser?
>>
>> Thanks John
>>
>> FYI we are finding that some serialisation tech doesn't work for us.
>> Eg protostuff-runtime has problems with Scala enums and Option None.
>
> You might wanna check out https://github.com/scalastuff/scalabeans/.
>  Underneath it uses protostuff to ser/deser scala runtime objects.

Another alternative for JSON-based serialization is to check out
various options for Jackson, like Jackson scala module
(https://github.com/FasterXML/jackson-module-scala) and Jerkson
(https://github.com/codahale/jerkson), which both work with Option
none, enums, case classes and various Scala collection classes.

-+ Tatu +-

Eishay Smith

unread,
Apr 23, 2012, 11:32:58 PM4/23/12
to java-serializat...@googlegroups.com
Play2 (scala) is exposing json ser/deser using jerkson:
>> "com.codahale"                      %%   "jerkson"                  %   "0.5.0"


Tatu Saloranta

unread,
Apr 23, 2012, 11:44:41 PM4/23/12
to java-serializat...@googlegroups.com
On Mon, Apr 23, 2012 at 8:32 PM, Eishay Smith <eis...@gmail.com> wrote:
> Play2 (scala) is exposing json ser/deser using jerkson:
> https://github.com/playframework/Play20/blob/master/framework/project/Build.scala
>>> "com.codahale"                      %%   "jerkson"                  %
>>> "0.5.0"

Nice! I knew there was an unofficial patch or such, didn't know it got
included. This is good since performance was bit of an issue with Play
& JSON earlier.

-+ Tatu +-

Eishay Smith

unread,
Apr 23, 2012, 11:49:29 PM4/23/12
to java-serializat...@googlegroups.com
On Play1 the recommendation was to go with lift-json for scala code. 
Play2 has Scala as a first class citizen and chose to go with jerkson. 


-+ Tatu +-

John Lonergan

unread,
Apr 29, 2012, 5:12:21 PM4/29/12
to java-serialization-benchmarking

I am finding protostuff fast and low hassle.

Already tried scalabeans but it surprisingly had problems with nester objects in the datastructure.

JL

Reply all
Reply to author
Forward
0 new messages