diff options
author | Russell <rcoh@rcoh.(none)> | 2011-01-10 12:21:19 -0500 |
---|---|---|
committer | Russell <rcoh@rcoh.(none)> | 2011-01-10 12:21:19 -0500 |
commit | cbdc42af021f898e82d3e78ce7c636d3fb5eece0 (patch) | |
tree | f36ca72463702c104dd02f026e9fbcd6de3f0da8 /LightInstallation.py | |
parent | 1679719e7ca8ce433c5714474a32c926161dc5b8 (diff) |
Some performance improvements. Faster evaluation of range-based queries with
lambda expressions. Faster exp with approximated fastexp. Some changes to the
component registry.
Diffstat (limited to 'LightInstallation.py')
-rw-r--r-- | LightInstallation.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/LightInstallation.py b/LightInstallation.py index 6e3c093..aaedcf2 100644 --- a/LightInstallation.py +++ b/LightInstallation.py @@ -101,27 +101,26 @@ class LightInstallation: except Exception as inst: main_log.error('Error importing ' + module+'.'+'.className. Component not\ initialized.') - main_log.error(str(inst)) #TODO: exception logging - continue #TODO: verify functions as expected + main_log.error(str(inst)) + continue args = configGetter.pullArgsFromItem(configItem) args['parentScope'] = self #TODO: we shouldn't give away scope #like this, find another way. try: - components.append(eval(className+'(args)')) #TODO: doesn't error + components.append(eval(className+'(args)')) main_log.debug(className + 'initialized with args ' + str(args)) #right except Exception as inst: main_log.error('Failure while initializing ' + className + ' with ' + str(args)) - main_log.error(str(inst)) #TODO: exception logging + main_log.error(str(inst)) return components def alive(self): return True def mainLoop(self): - #self.screen.allOn() lastLoopTime = clock.time() refreshInterval = 30 - runCount = 2000 + runCount = 200 while runCount > 0: runCount -= 1 loopStart = clock.time() |