[jboss-cvs] JBossAS SVN: r75820 - projects/aop/branches/joinpoint_graph/aop/src/main/org/jboss/aop/joinpoint/graph/tree.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 15 00:46:20 EDT 2008


Author: flavia.rainone at jboss.com
Date: 2008-07-15 00:46:20 -0400 (Tue, 15 Jul 2008)
New Revision: 75820

Modified:
   projects/aop/branches/joinpoint_graph/aop/src/main/org/jboss/aop/joinpoint/graph/tree/SlotFlagSystem.java
Log:
[JBAOP-503] Fixed a tree performance issue.

Modified: projects/aop/branches/joinpoint_graph/aop/src/main/org/jboss/aop/joinpoint/graph/tree/SlotFlagSystem.java
===================================================================
--- projects/aop/branches/joinpoint_graph/aop/src/main/org/jboss/aop/joinpoint/graph/tree/SlotFlagSystem.java	2008-07-15 04:24:52 UTC (rev 75819)
+++ projects/aop/branches/joinpoint_graph/aop/src/main/org/jboss/aop/joinpoint/graph/tree/SlotFlagSystem.java	2008-07-15 04:46:20 UTC (rev 75820)
@@ -36,7 +36,7 @@
     * The offset of the flags. All flags should have an identifier greater than
     * or equal to this offset.
     */
-   private static final char OFFSET = '#';
+   private static final char OFFSET = ' ';
    
    /**
     * The initial flags array size.
@@ -68,8 +68,8 @@
    public SlotFlagSystem(char id1, char id2)
    {
       // calculate flags length
-      int flagsLength = Math.max(INITIAL_FLAGS_SIZE, id1/16 + 1);
-      flagsLength = Math.max(flagsLength, id2/16 + 1);
+      int flagsLength = Math.max(INITIAL_FLAGS_SIZE, (id1 - OFFSET)/16 + 1);
+      flagsLength = Math.max(flagsLength, (id2 - OFFSET)/16 + 1);
       // create and initialize vectors
       this.flags = new char[flagsLength];
       for (int i = 0; i < flagsLength; i++)




More information about the jboss-cvs-commits mailing list