Any chance to achieve better performances for OTHER columns through "jboss-serialization" library?

77 views
Skip to first unread message

Davide Cavestro

unread,
Mar 22, 2013, 12:47:12 PM3/22/13
to h2-da...@googlegroups.com
Just wondering if having the ability to switch to a standard java serialization compatible mechanism like jboss-serialization could lead to better performance for columns of type OTHER. Did anyone tried so far?

Cheers
Davide

Davide Cavestro

unread,
Mar 23, 2013, 10:48:20 AM3/23/13
to h2-da...@googlegroups.com
That's simply great!
Many thanks


2013/3/23 Igor castang <igor.c...@gmail.com>
I will take a shot at answering that one.

since version 1.3.170 the property h2.javaObjectSerializer has been added in order to make the serialization process plugable.
Thus it should be trivial to use the jboss-serialization process by just implementing your own
javaObjectSerializer and benchmark it against the normal process.

Cheers back.
--
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/P7dn_0Lkp5k/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

davide.cavestro

unread,
Jul 2, 2013, 12:47:18 PM7/2/13
to h2-da...@googlegroups.com
Hi,
sorry for the long delay.
Even if I am not a micro-benchmark fan, today I've sketched a raw comparison
of h2 serialization for jboss-serialization, apache kryo and h2 native
serialization.

I've shared a gist <https://gist.github.com/davidecavestro/5910882> with
the test code and a spreadsheet
<https://docs.google.com/spreadsheet/ccc?key=0Am3ZF0bmUOy8dEFaRFRlMThqNGhsRGg1MVJVdkwyWlE&usp=sharing>
with the results

It seems kryo is the best. But this is only a starting point (i.e. I've
taken only the avg for execution)


Igor castang wrote
> Your welcome.
> If you end-up measuring standard serialization versus jboss', please share
> the results as I (and other I guess) may be interested.
>
>
> On Saturday, March 23, 2013 7:48:20 AM UTC-7, Davide Cavestro wrote:
>>
>> That's simply great!
>> Many thanks
>>
>>
>> 2013/3/23 Igor castang &lt;

> igor.c...@

> &lt;javascript:&gt;>
>>
>>> I will take a shot at answering that one.
>>>
>>> since version 1.3.170 the property h2.javaObjectSerializer has been
>>> added in order to make the serialization process plugable.
>>> Thus it should be trivial to use the jboss-serialization process by just
>>> implementing your own javaObjectSerializer and benchmark it against the
>>> normal process.
>>>
>>> Cheers back.
>>>
>>>
>>> On Friday, March 22, 2013 9:47:12 AM UTC-7, Davide Cavestro wrote:
>>>>
>>>> Just wondering if having the ability to switch to a standard java
>>>> serialization compatible mechanism like
>>>> jboss-serialization&lt;http://www.jboss.org/serialization&gt; could
>>>> lead to better performance for columns of type
>>>> OTHER&lt;http://www.h2database.com/html/datatypes.html#other_type&gt;.
>>>> Did anyone tried so far?
>>>>
>>>> Cheers
>>>> Davide
>>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "H2 Database" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/h2-database/P7dn_0Lkp5k/unsubscribe?hl=en
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>>

> h2-database...@

>
> <javascript:>
> .
>>> To post to this group, send email to

> h2-da...@

> <javascript:>
>>> .
>>> Visit this group at http://groups.google.com/group/h2-database?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to

> h2-database+unsubscribe@

> .
> To post to this group, send email to

> h2-database@

> .
--
View this message in context: http://h2-database.66688.n3.nabble.com/Any-chance-to-achieve-better-performances-for-OTHER-columns-through-jboss-serialization-library-tp4026037p4026809.html
Sent from the H2 Database mailing list archive at Nabble.com.
Reply all
Reply to author
Forward
0 new messages