Please sign in to comment.
Improved: Rewrite ‘Start#determineCommandType’
(OFBIZ-11137) Rename it to ‘Start.CommandType#valueOf’ and use a set to determine the type of command instead of repetitive stream iterations. Assuming ‘Set#contains’ is a constant operation, The algorithmic complexity in worth case has dropped from O(n*m) to O(n+m) where n is the number of command types and m is the number of startup commands. In this particular case where n and m are small, the theorical gain is not significative in term of actual performance. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1862664 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing with 26 additions and 17 deletions.