[jboss-jira] [JBoss JIRA] (JBRULES-3367) Planner: score calculation with plain old Java

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Tue Jan 31 03:41:48 EST 2012


     [ https://issues.jboss.org/browse/JBRULES-3367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Geoffrey De Smet updated JBRULES-3367:
--------------------------------------

    Description: 
Provide an plain old java alternative to score calculations, so the user has choice (= freedom):
- A) Drools score calculation (default). Does incremental calculation automatically, without extra code.
- B) Java non-incremental score calculation. Very easy to reuse existing score code, but not fast.
- C) Java incremental score calculation. Requires incremental boilerplate code, but experiments show that in some use cases (with little rules) it can be a 100 times faster than A) with drools 5.3. Note that undo-then and JIT compiling might change that number drastically in future drools versions.

Technically, it's a matter of overwriting SolutionDirector. For C) we'll also need to adjust the Move and ProblemFactChange interface accordingly.

  was:
Provide an plain old java alternative to score calculations, so the user has choice (= freedom):
- A) Drools score calculation (default). Does incremental calculation automatically, without extra code.
- B) Java non-incremental score calculation. Very easy to reuse existing score code, but not fast.
- C) Java incremental score calculation. Requires incremental boilerplate code, but experiments show that in some use cases (with little rules) it can be a 100 times faster than A) with drools 5.3. Note that undo-then and JIT compiling might change that number drastically in future drools versions.

Technically, this is pretty easy to do: just overwrite SolutionDirector.


    
> Planner: score calculation with plain old Java
> ----------------------------------------------
>
>                 Key: JBRULES-3367
>                 URL: https://issues.jboss.org/browse/JBRULES-3367
>             Project: Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-planner
>            Reporter: Geoffrey De Smet
>            Assignee: Geoffrey De Smet
>
> Provide an plain old java alternative to score calculations, so the user has choice (= freedom):
> - A) Drools score calculation (default). Does incremental calculation automatically, without extra code.
> - B) Java non-incremental score calculation. Very easy to reuse existing score code, but not fast.
> - C) Java incremental score calculation. Requires incremental boilerplate code, but experiments show that in some use cases (with little rules) it can be a 100 times faster than A) with drools 5.3. Note that undo-then and JIT compiling might change that number drastically in future drools versions.
> Technically, it's a matter of overwriting SolutionDirector. For C) we'll also need to adjust the Move and ProblemFactChange interface accordingly.

--
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