<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 25 Feb 2010, at 11:17, Philippe Van Dyck wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks Manik but it is actually related to the compression of the stored and (https) transferred ones on the S3 side.<div>The S3 bill is 95% lower here... and https transfer time is lower too (you pay for booth).</div></blockquote><div><br></div><div>Makes sense. &nbsp;Create a JIRA for this, I'm sure such a feature would be generically useful to others as well - if you're happy to contribute your work back in. &nbsp;:)</div><br><blockquote type="cite"><div>The Marshaller interface is exposing a lot of methods and it looks like the call each other...&nbsp;</div></blockquote><div><br></div><div>The original Marshaller interface is legacy, from JBoss Cache, which was built as an extension to JGroups' Marshaller interface. &nbsp;It may look a little confusing as a result, but have a look at the AbstractMarshaller which should help simplify things. &nbsp;Further, look at the VersionAwareMarshaller, which is the entry point into the marshalling system.</div><div><br></div><div>HTH</div><div>Manik</div><div><br></div><div><br></div><br><blockquote type="cite"><div><br></div><div>phil&nbsp;<br><br><div class="gmail_quote">On Thu, Feb 25, 2010 at 12:11 PM, Manik Surtani <span dir="ltr">&lt;<a href="mailto:manik@jboss.org">manik@jboss.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">If it is compression for transmission you are concerned about, you can do this by adding the JGroups COMPRESS protocol to your JGroups cfg.<br>

<div><div></div><div class="h5"><br>
On 25 Feb 2010, at 11:02, philippe van dyck wrote:<br>
<br>
&gt; Hi All,<br>
&gt;<br>
&gt; Currently, I compress all data before sending it to the cache. Once compressed, I gain 95% of the JSonized qi4j objects.<br>
&gt;<br>
&gt; I did some profiling during the load tests and compression is taking roughly 80% of the cpu time.<br>
&gt; So I would like to compress only the data sent to the store, not in memory.<br>
&gt;<br>
&gt; Looks like the Marshaller is my friend here, and I plan to write a compressing wrapper around it.<br>
&gt;<br>
&gt; Now, when I look at it, I see two ways to wrap the compression process.<br>
&gt;<br>
&gt; One way is with the ObjectInput / ObjectOutput but I am bothered by the reentrant flag.<br>
&gt; The other is the ByteBuffer stuff, no concurrency problem here, but it looks like more work.<br>
&gt;<br>
&gt; WDYT ?<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; phil<br>
</div></div>&gt; _______________________________________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
--<br>
Manik Surtani<br>
<a href="mailto:manik@jboss.org">manik@jboss.org</a><br>
Lead, Infinispan<br>
Lead, JBoss Cache<br>
<a href="http://www.infinispan.org/" target="_blank">http://www.infinispan.org</a><br>
<a href="http://www.jbosscache.org/" target="_blank">http://www.jbosscache.org</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</blockquote></div><br></div>
_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div>Lead, Infinispan</div><div>Lead, JBoss Cache</div><div><a href="http://www.infinispan.org">http://www.infinispan.org</a></div><div><a href="http://www.jbosscache.org">http://www.jbosscache.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>