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

jcambon
12.18.2009 f5f7aec63906ffc084de9a79d95f1016ac6276bb
refs
author jcambon <jcambon@localhost>
Tuesday, May 12, 2009 15:18 +0200
committer jcambon <jcambon@localhost>
Tuesday, May 12, 2009 15:18 +0200
commitf5f7aec63906ffc084de9a79d95f1016ac6276bb
tree 37c1a222ff397a559cac3f7afee6ca2eb76e1093 tree | zip | gz
parent 166b60ff04ea7bb074426a14b907403eda1d2fb8 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
opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/InternalManagementContextFactory.java 9 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java 21 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/ManagementContextFactory.java 10 ●●●●● diff | view | raw | blame | history