mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jcambon
12.18.2009 62be845bbaf00d0ff6fa8584695efdfe91e4872e
refs
author jcambon <jcambon@localhost>
Tuesday, May 12, 2009 15:18 +0200
committer jcambon <jcambon@localhost>
Tuesday, May 12, 2009 15:18 +0200
commit62be845bbaf00d0ff6fa8584695efdfe91e4872e
tree 12796f25da8db7efe3bfe710fb53ab6e77cac18f tree | zip | gz
parent a06c3e53ea0fb25c9403d0bd66c8c83a635f6a54 view | diff
Partial Fix for issue #3938 : dsconfig is really too slow in non-interactive mode, almost unusable on Niagara systems

This is a partial fix for this dsconfig performance issue:
Linked to fix for issue #2017 (tools usage should disclose default value for options),
we systematically parsed the configuration file.
This fix allows to only parse the config file when necessary (i.e. for help command, or if -port/--trustAll not specified in the command line)

On a machine with a CPU almost equivalent of the Niagara ones,
it allows to save ~20% of the dsconfig time (~9s instead of ~11s).
4 files modified
46 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java 6 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/InternalManagementContextFactory.java 9 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java 21 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/ManagementContextFactory.java 10 ●●●●● diff | view | raw | blame | history