Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0029FD1D for ; Fri, 10 May 2013 15:18:11 +0000 (UTC) Received: (qmail 18523 invoked by uid 500); 10 May 2013 15:18:11 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 18437 invoked by uid 500); 10 May 2013 15:18:10 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 18423 invoked by uid 99); 10 May 2013 15:18:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 15:18:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sberyozkin@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ea0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 15:18:03 +0000 Received: by mail-ea0-f172.google.com with SMTP id r16so2337046ead.3 for ; Fri, 10 May 2013 08:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=kU77QOtGg42H5WxnQENbI0+uFDTg8yFc0VvjmWdKat0=; b=kJJyptsbwFsL7RBxIu24YHHuCDbOoNokO+JFmhysUWN2SyaghBVeStzJGGOXdnIk9w 0pE3PY6gSsJuMDyBFJ6yypu//RYupgHZ+9BGsi2gFwMH24WU5i+EIC6Y7ntCA6aWIUP+ WpJauHMcPzaDjLzJEIQrWggp9CaFxfhPY6G+Aq9gwE+tPSvmrD2DRct+46DBz6CwwQ14 M4vjiKYeQ8+x1LsBdFJ0RUIJNaIT6hci6vdh5ymBSPnN/PwUMXt9491PAWhVFB16nIei UlnX6a/e3PRU+SguKrt1mAaK7nH8eIsee6vC8RdgezSnMql9sbNtKeoVxR/kmcFzvbGG wH3w== X-Received: by 10.14.111.5 with SMTP id v5mr42664634eeg.27.1368199062835; Fri, 10 May 2013 08:17:42 -0700 (PDT) Received: from [10.36.226.5] ([217.173.99.61]) by mx.google.com with ESMTPSA id q1sm4141360eez.6.2013.05.10.08.17.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 May 2013 08:17:41 -0700 (PDT) Message-ID: <518D0F92.2070205@gmail.com> Date: Fri, 10 May 2013 16:17:38 +0100 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: dev@cxf.apache.org Subject: Re: More cache in jaxrs impl References: <518CC2D9.7060204@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Romain On 10/05/13 11:03, Romain Manni-Bucau wrote: > Hi, > > It doesnt urge (and im cleaning up tomee after the owb update which broke a > bunch of stuff for weeks so no real time ATM ;) but saw it several times > integrating cxf in tomee and each time i tested/debugged doing a POST data > provisioning i was womdering why it was so complicated since it was the > same than previous query. Finally found time to start discussing it here :) > > What would be great: ok for a param but on server factory bean too to let > tomee activate it if possible, backported in 2.6.x otherwise tomee 1.x will > not be able to be certified :( > > Then the key of the cache should only be composed of the fixed uri, http > method, consume and produce media type no? Kind of light > OperationResourceInfo We'll have to think carefully about it; at the moment I'm not sure if/how it will work, perhaps a limited optimization is possible, I'm thinking more about eliminating the possibly redundant checkups after a first candidate has been found, etc or when the resource has such operations that it can become safe to cache, I'm not sure really at the moment. I was thinking more about the servlet level optimization Cheers, Sergey > Le 10 mai 2013 11:51, "Sergey Beryozkin" a �crit : > >> Hi Romain >> On 10/05/13 10:27, Romain Manni-Bucau wrote: >> >>> Hi guys >>> >>> Excepted if i didnt get the code right it seems the endpoint resolution is >>> done each time in rs impl. >>> >>> Couldnt it be cached a bit more? (i think to fixed uri which is common for >>> not GET cases). In such a case cxf could skip a bunch of logic no? >>> >>> The idea is to get perf closer to servlets since jaxrs is close to them (i >>> never said it was the same ;) >>> >>> Wdyt? >>> >>> I think it is a not a bad idea at all. We can try to experiment with it >> by introducing an optional servlet parameter so that we can always resort >> to the existing tried and tested approach if needed. The only thing it can >> be tricky to do completely right. >> For SOAP endpoints it can be more predicatable, for RS endpoints a bit >> less, as we effectively have a stem match. Please start experimenting if >> you need it fast, I'm all into JAX-RS 2.0 work now with some other planned >> work to do, but can help with/look into it later on too. >> >> Thanks, Sergey >> >