Don't perform some API self-tests in production mode for performance reasons

The API does a fair number of self tests and locking to assure that the
registered commands are consistent and will work. This does not need
to be done on a production system and adds additional overhead causing
somewhere between a 30 and 50% decrease in performance.

Because makeapi is executed when a build is done ensure that it is
executed in developer mode to ensure that the framework is ok.

ticket 751
This commit is contained in:
Rob Crittenden authored and Simo Sorce committed 2011-01-28 18:49:17 -05:00
1 parent fd1d0857b5
commit 359d54e741
6 files changed
+20 -8

No files matched your search

+1
View File
@@ -210,6 +210,7 @@ def main():
verbose=0,
validate_api=True,
enable_ra=True,
mode='developer',
)
api.bootstrap(**cfg)