diff options
author | Russell Cohen <rcoh@mit.edu> | 2010-12-03 04:20:17 -0500 |
---|---|---|
committer | Russell Cohen <rcoh@mit.edu> | 2010-12-03 04:20:17 -0500 |
commit | 353ab16db64c86122c0fcb9e1852b85c14b354b8 (patch) | |
tree | 8904f1cd312974a849ad5bcf0c8520fd20175cda /operationscore/SmootCoreObject.py | |
parent | 0366f46d3d7e946e254f933888aea4beb4e70658 (diff) |
Speed optimizations abound! Caching on parameter validation, Binary
searching for light locations in pixel mappers, actual thread safety for
inputs means we don't drop them randomly, anymore. Caching on PixelStates to
reduce multi-renderer costs + a short circuit to speed up processing on
pixels that are turned off.
Diffstat (limited to 'operationscore/SmootCoreObject.py')
-rw-r--r-- | operationscore/SmootCoreObject.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/operationscore/SmootCoreObject.py b/operationscore/SmootCoreObject.py index 84319af..d29e710 100644 --- a/operationscore/SmootCoreObject.py +++ b/operationscore/SmootCoreObject.py @@ -21,10 +21,8 @@ class SmootCoreObject: def __getiter__(self): return self.argDict.__getiter__() def validateArgs(self, argFileName): - try: - self.validateArgDict(Util.loadParamRequirementDict(argFileName)) - except IOError: - print 'No Arg Dict found for ' + self.className() + self.validateArgDict(Util.loadParamRequirementDict(argFileName))#util + #caches for us, woo! def validateArgDict(self, validationDict): for item in validationDict: if not item in self.argDict: |