[jbosscache-dev] VAM in JDBCCacheLoader : performance numbers andanalysis

Brian Stansberry brian.stansberry at jboss.com
Wed Jan 3 11:17:56 EST 2007


jbosscache-dev-bounces at lists.jboss.org wrote:
> On 28 Dec 2006, at 00:05, Galder Zamarreno wrote:airs here.

<snip>

>> Looking a bit deeper with the profiler, I have seen that
>> TreeCacheMarshaller200 takes ages marshalling a map containing string
>> key/value pairs. Is this expected? We're adding quite a few things to
>> a simple String/String map, such as versioning and reference
>> information. Compared to standard writeObject in HashMap,
>> TreeCacheMarshaller200 spends quite a bit of time mantaining/
>> updating a reference map.
> 
> It is possible that such a reference map is meaningless in
> the case of writing to a cache loader.  It makes sense
> streaming on the wire for an RPC call though.  So maybe there
> needs to be an overloaded form of objectTo|FromByteBuffer
> that could disable the ref map?
>

Isn't that map used to ensure only a single copy of a
multiple-referenced object survives serialization?  I'd think correct
behavior for that would be critical no matter where it's done.

- Brian




More information about the jbosscache-dev mailing list