On 7/28/06, Kuppe <[EMAIL PROTECTED]> wrote:

I am really trying to keep the processing cost to a minimum really. We have a
large number of small messages being processed (say hundreds or more per
second) and as we have many slow clients i expect the evictMessage method to
be called quite frequently - again perhaps a hundred or more times per
second... Each time it is called, it would be necessary to unmarshal the
properties for each message considered for eviction... I can imaging that
this is not the most effective way of using cpu resource:)

FWIW once the properties are unmarshalled they are cached so they
won't be unmarshalled again on the same message, so I think it'll be
pretty quick.


As i am consolidating many sources of data in my broker, the sources are
typically not in the same vm as the producers, therefore the properties are
still marshalled and really should be.

The question is whether there is any natural place for a single String
property to be placed outside of the marshalled properties that may then be
used for eviction.

Am being lazy - to save me rereading the whole thread again, what is
the new String for?

--

James
-------
http://radio.weblogs.com/0112098/

Reply via email to