Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 44201 invoked from network); 17 Oct 2005 12:30:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2005 12:30:11 -0000 Received: (qmail 60188 invoked by uid 500); 17 Oct 2005 12:30:07 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 60156 invoked by uid 500); 17 Oct 2005 12:30:06 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 60144 invoked by uid 99); 17 Oct 2005 12:30:06 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 05:30:06 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 02F96DE for ; Mon, 17 Oct 2005 14:29:45 +0200 (CEST) Message-ID: <686008886.1129552184989.JavaMail.jira@ajax.apache.org> Date: Mon, 17 Oct 2005 14:29:44 +0200 (CEST) From: "Eran Chinthaka (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-282) Axis2 UUID Generator is too slow In-Reply-To: <1268799005.1129310264782.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-282?page=comments#action_12332226 ] Eran Chinthaka commented on AXIS2-282: -------------------------------------- Rajesh, Ant also initialy came up with this suggestion and our Sandesha people also wanted to include the commons UUID generator initialy. I answered to this question to Ant in the Synapse dev list, but let me put that here also for tracking purposes. "Well, you all agree that we need a UUID generator. This is required for creating message ids, MTOM ids, Sandesha stuff, etc.. We could have easily taken the commons UUID generator, but that will add another jar to Axis2. When that happens you people will shout and say, Axis2 download is large. So I try my level best to avoid adding new jars. Thilina and Dims were kind enough to write an acceptable level of UUID generator for Axis2 which we are using. " For this I got an excellent suggestion from Ant and created this issue from that and then I implemented that in Axis2. I personally like to avoid new jars as much as possible. But if you have a better algorithm, lets implement that in Axis2. I think the current algorithm will give us a uniqueness which we all can satisfy at least for the time being. If our one is not smart enough to handle future stuff, then lets think about shifting a specialised UUID generator later. > Axis2 UUID Generator is too slow > -------------------------------- > > Key: AXIS2-282 > URL: http://issues.apache.org/jira/browse/AXIS2-282 > Project: Apache Axis 2.0 (Axis2) > Type: Improvement > Components: core > Reporter: Eran Chinthaka > Fix For: 0.93 > > According to Ant Elder : Calling to UUIDGenerator.getUUID() is _really_ slow, takes about > 1ms on my machine, accounting for about 65% of the total service invocation! > Solution Proposed by him : To make the UUID generator a bit faster how about doing all the complicated > computation to come up with a unique ID just the one time, then for all > subsequent requests just append an incrementing integer onto the original > unique id. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira