[jboss-jira] [JBoss JIRA] (JBRULES-3531) Planner's SolverFactory should not recompile the DRL files everytime it builds a Solver

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Wed Jun 6 13:14:17 EDT 2012


    [ https://issues.jboss.org/browse/JBRULES-3531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699511#comment-12699511 ] 

Geoffrey De Smet commented on JBRULES-3531:
-------------------------------------------

the SolverFactory could have a prepare() method and the solverConfig could keep a xstream ommitted boolean prepared.
the buildSolver() method then needs to do

{code}
  synchronized(this) {
    if (!prepared) { prepare(); }
  }
{code}
and prepare() needs to be synchronized too.


TODO: prove the whole thread-safety when used across several threads.
                
> Planner's SolverFactory should not recompile the DRL files everytime it builds a Solver
> ---------------------------------------------------------------------------------------
>
>                 Key: JBRULES-3531
>                 URL: https://issues.jboss.org/browse/JBRULES-3531
>             Project: Drools
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: drools-planner
>            Reporter: Geoffrey De Smet
>            Assignee: Geoffrey De Smet
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list