/[Apache-SVN]
ViewVC logotype

Revision 1862664


Jump to revision: Previous Next
Author: mthl
Date: Sat Jul 6 14:33:19 2019 UTC (4 years, 8 months ago)
Changed paths: 1
Log Message:
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.


Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/Start.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26