directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <>
Subject Re: [mina] Object serialization integration to ByteBuffer (Re: Decoding/Encoding UTF representation)
Date Mon, 21 Nov 2005 14:02:16 GMT
This is something that we can work on. 

The main problem with this approach is that we have to describe the way
some objects are to be serialized. We can't rely on standard
serialization of HashMaps, Strings and aother java structures.

The second point would be to choose the best encoding solution. BER is
pretty verbose compared to PER, but as we won't benefit from many of the
PER advantages, this is not a real problem.

Last, I'm not sure that using ASN.1 against standard serialization will
really lead to improvment in performance. This has to be checked.


On Mon, 2005-11-21 at 20:25 +0900, Trustin Lee wrote:
> Hi Alex,
> 2005/11/19, Alex Karasulu <>:
>         Wish we had a nice little toolkit for using ASN1 to serialize
>         objects
>         and deserializing them.  This would be a great place to apply
>         it.
>         Marshalling and demarshalling would be fast on the wire.
> I thought about this.  The biggest problem is that the default
> ObjectInput(Output) stream is too slow.  It is because we have to
> create the stream every time we call putObject or getObject.  It is a
> huge performance hit IIRC from my previous projects.  So I extended
> ObjectInput and Output stream for special purpose. 
> The idea is very good in general, but we have to find out the best way
> to minimise the overhead.  I'll post a JIRA issue for this.
> Trustin
> -- 
> what we call human nature is actually human habit 
> --

View raw message