diff options
author | Jan Cholasta <jcholast@redhat.com> | 2011-11-03 06:42:17 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-11-22 00:52:24 -0500 |
commit | e7a6d1055574d2dd892f414dbe993ee5782ab488 (patch) | |
tree | a78fd289eef1743c3251c173a06526bea30e9bd9 /ipalib/constants.py | |
parent | bce3cd945c66e8e8dc49382356348745eefe8c59 (diff) | |
download | freeipa-e7a6d1055574d2dd892f414dbe993ee5782ab488.tar.gz freeipa-e7a6d1055574d2dd892f414dbe993ee5782ab488.tar.xz freeipa-e7a6d1055574d2dd892f414dbe993ee5782ab488.zip |
Finalize plugin initialization on demand.
This patch changes the way plugins are initialized. Instead of
finalizing all the plugins at once, plugins are finalized only after
they are accessed (currently applies to Command, Object and
Attribute subclasses, only in CLI by default).
This change provides significant performance boost, as only the
plugins that are actually used are finalized.
ticket 1336
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r-- | ipalib/constants.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py index 6d246288b..7ec897b58 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -188,6 +188,7 @@ DEFAULT_CONFIG = ( ('confdir', object), # Directory containing config files ('conf', object), # File containing context specific config ('conf_default', object), # File containing context independent config + ('plugins_on_demand', object), # Whether to finalize plugins on-demand (bool) # Set in Env._finalize_core(): ('in_server', object), # Whether or not running in-server (bool) |