-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 changed file
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters