directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Irving, Dave" <>
Subject RE: [mina] Object serialization integration to ByteBuffer (Re: Decoding/Encoding UTF representation)
Date Mon, 21 Nov 2005 11:42:08 GMT
I dont know if its relevant, but there is a little tip which can also be
used when using OIS / OOS which gives about a 30% speed improvement:
Dont bother writing class descriptors.
This is obviously only useful in certain usage scenarios (i.e. where
class versioning isn't an issue), but is well worth it where it applies
(maybe a config option?)
Anyway, if you want to try it out - Ive attached example code 


From: Trustin Lee [] 
Sent: 21 November 2005 11:25
To: Apache Directory Developers List
Subject: [mina] Object serialization integration to ByteBuffer (Re:
Decoding/Encoding UTF representation)

Hi Alex,

2005/11/19, Alex Karasulu <>: 

	Wish we had a nice little toolkit for using ASN1 to serialize
	and deserializing them.  This would be a great place to apply
	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.


what we call human nature is actually human habit 

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.

View raw message