<div dir="ltr"><div>Hi John,</div><div>interesting data, thanks. Yes, I think it would make sense to have some cache; can you share a link to the hibernate caching mechanism that you&#39;re referring to?</div><div>Thanks<br></div><div><br><div class="gmail_quote"><div dir="ltr">On Sat, Oct 27, 2018 at 2:00 AM John O&#39;Hara &lt;<a href="mailto:johara@redhat.com">johara@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">During a benchmark run, we are seeing over 5% of cpu time taken up by each request creating a new ResteasyUriInfo instance. Please see the attached graph.</div><div dir="ltr"><br></div><div dir="ltr">For most use cases in our application, the parameters are the same between requests, and therefore the ResteasyUriInfo are immutable and could be shared. The case that I can see where sharing a ResteasyUriInfo would be problematic is when there are path parameters in the URI.</div><div dir="ltr"><br></div><div>Could it be possible to cache ResteasyUriInfo that are immutable, or even cache a URI with placeholders for URI that contain path parameters? </div><div><br></div><div>IIRC hibernate has a similar caching mechanism for prepared statements with parameters, a similar approach may work here.</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div><div><br></div><div>-- </div><div dir="ltr"><div dir="ltr" class="m_-7992937679749464043gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span>JOHN</span> <span>O&#39;HARA</span></p><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>PRINCIPAL SOFTWARE ENGINEER</span><span style="color:rgb(170,170,170);margin:0px"></span></p><p style="font-family:overpass,sans-serif;margin:0px;font-size:10px;color:rgb(153,153,153)"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat<span></span></a></p><table style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium" border="0"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"><img width="90" height="auto"></a></td><td style="font-size:10px"><div><a href="https://redhat.com/trusted" style="color:rgb(204,0,0);font-weight:bold" target="_blank">TRIED. TESTED. TRUSTED.</a></div></td></tr></tbody></table><div style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px"><div style="color:rgb(153,153,153)"><a href="https://twitter.com/redhat" title="twitter" style="background:transparent url(&quot;&quot;) no-repeat scroll 0px 50%/16px auto;height:20px;color:rgb(119,119,119);display:inline-block;line-height:20px;padding-left:16px" target="_blank">@redhat</a>   <a href="https://instagram.com/redhatinc" title="instagram" style="background:transparent url(&quot;&quot;) no-repeat scroll 0px 50%/16px auto;height:20px;color:rgb(119,119,119);display:inline-block;line-height:20px;padding-left:16px" target="_blank">@redhatinc</a>   <a href="https://snapchat.com/add/redhatsnaps" title="snapchat" style="background:transparent url(&quot;&quot;) no-repeat scroll 0px 50%/15px auto;height:20px;color:rgb(119,119,119);display:inline-block;line-height:20px;padding-left:16px" target="_blank">@redhatsnaps</a></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
resteasy-dev mailing list<br>
<a href="mailto:resteasy-dev@lists.jboss.org" target="_blank">resteasy-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/resteasy-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/resteasy-dev</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>
<p style="font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span>Alessio</span> <span>Soldano</span></p>
<p style="font-weight:normal;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>Associate Manager</span><span style="font-weight:normal;color:rgb(170,170,170);margin:0px"></span></p>
<p style="font-weight:normal;margin:0px;font-size:10px;color:rgb(153,153,153)"><a style="color:rgb(0,136,206);font-size:10px;margin:0px;text-decoration:none;font-family:&quot;overpass&quot;,sans-serif" href="https://www.redhat.com" target="_blank">Red Hat <span><br><br></span></a></p>




<table border="0"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"> <img width="90" height="auto"></a> </td>
</tr></tbody></table>

</div></div></div></div></div>