qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Greig" <robert.j.gr...@gmail.com>
Subject Re: Use of AMQShortString in client side code
Date Thu, 20 Sep 2007 12:25:57 GMT
On 20/09/2007, Rafael Schloming <rafaels@redhat.com> wrote:

> Perhaps I didn't understand your suggestion.

OK, now I am confused I think...

> It sounds to me like it is
> the same thing as doing nothing at all.

No, I meant enhance the current implementation of AMQShortString to
correct the weaknesses already discussed for encoding.

> The generated API would use
> String and there would be no copying on encode, however that still
> leaves the overhead of copying and unicode character conversion on
> decode. It is the latter part that using AMQShortString or the
> CharSequence interface can avoid.

But the current implementation of AMQShortString lazily decodes? What
is the copying you are referring to?

RG

Mime
View raw message