[jboss-jira] [JBoss JIRA] Created: (JBRULES-1481) Stop actionQueue recursion in working memory

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Thu Feb 21 15:19:42 EST 2008


Stop actionQueue recursion in working memory
--------------------------------------------

                 Key: JBRULES-1481
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1481
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 4.0.4
            Reporter: Edson Tirelli
         Assigned To: Edson Tirelli
             Fix For: 4.0.5, 5.0.0-M1



---Efficient Queue---
1. Change AbstractWorkingMemory.actionQueue to LinkedList and use the
Queue interface.
2. AbstractWorkingMemory.executeQueuedActions change it to get the item
from the queue - rather than the current list.remove( 0 ) which is
causing a lot of array copies in the ArrayList.

---Stop Re-entrant queue evaluation---
1. Add boolean evaluatingActionQueue.
2. Have the AbstractWorkingMemory.executeQueuedActions method check if
true, if so then return - i.e. don't evaluate the queue, as we are
already iterating it.
3. If not set to true and iterate the queue until empty, before
executing set back to false.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list