Mercurial > code > home > repos > light9
changeset 1154:1e97f96ee00c
faster effect reload
Ignore-this: 9d6a733329596a7878fcc7ffbf2be2e
author | drewp@bigasterisk.com |
---|---|
date | Sat, 14 Jun 2014 23:08:09 +0000 |
parents | 22b3563bc3cd |
children | 749c9c372983 |
files | light9/effecteval/effect.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/effecteval/effect.py Sat Jun 14 23:06:22 2014 +0000 +++ b/light9/effecteval/effect.py Sat Jun 14 23:08:09 2014 +0000 @@ -3,6 +3,7 @@ from rdflib import URIRef from light9.namespaces import L9, RDF from light9.curvecalc.curve import CurveResource +from light9 import prof from light9 import Submaster from light9 import Effects # gets reload() later log = logging.getLogger('effect') @@ -91,6 +92,7 @@ # this is not expiring at the right time, when an effect goes away self.graph.addHandler(self.prepare) + @prof.logTime def prepare(self): log.info("prepare effect %s", self.uri) # maybe there can be multiple lines of code as multiple @@ -103,8 +105,8 @@ self.sortCodes() - reload(Effects) - self.otherFuncs = Effects.configExprGlobals() + #reload(Effects) + self.otherFuncs = prof.logTime(Effects.configExprGlobals)() def sortCodes(self): """put self.codes in a working evaluation order"""