I had to develop an interface with save() and load() methods to serialize,
and that bloats my objects and impacts maintainability.

This Struct project really pays off for binary protocols.

Trustin,
What do you have in mind? Merge? Dependency?

Rodrigo

On 7/16/07, yueyu lin < [EMAIL PROTECTED]> wrote:

I've ever implemented a set of codec to encode primitive
byte/short/int/long/float/double/String/byte[] into a byte[] that is
wrapped
to a ByteBuffer to send out.
This project seems to use annotation to make it easier to use.
This kind of things happen because we initially to use other program
language to communicate with java server so we cannot rely on Java's own
serialization. When these things are done, the efficiency is the reason to
support it. For a simple object, the convert process is 10 time faster
than
Java serialization.
If Mina needs this kind of encode/decode, I'm pleased to add them to mina.

On 7/17/07, Rodrigo Madera <[EMAIL PROTECTED]> wrote:
>
> Congratulations to the creator of the project.
>
> In my opinion, it's a great add-on for MINA.
>
> Rodrigo
>
> On 7/16/07, Trustin Lee < [EMAIL PROTECTED]> wrote:
> >
> > Hi community,
> >
> > One of MINA users started a project called 'JavaStruct':
> >
> > http://code.google.com/p/javastruct/wiki/HowToUseJavaStruct
> >
> > JavaStruct is an annotation-based dynamic protocol codec library.  It
> > is very useful for implementing binary (often proprietary) protocols
> > with many message types.  It currently is based on
> > DataInput/OutputStream, but the author says he will make it support
> > MINA ByteBuffer too.
> >
> > This might be a really nice idea if we can make proper use of
> > annotation IMHO, and providing such a feature as a MINA sub-module
> > might save many souls' sleepless nights.  WDYT?
> >
> > Cheers,
> > Trustin
> > --
> > what we call human nature is actually human habit
> > --
> > http://gleamynode.net/
> > --
> > PGP Key ID: 0x0255ECA6
> >
>



--
--
Yueyu Lin

Reply via email to