Performance problem in FunctionEvaluator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMod Framework |
Fix Committed
|
Undecided
|
fivemile |
Bug Description
FunctionEvaluator calls the evaluate method on the Evaluator 3 times, once to check for null, once for logging and once to return the data.
Should only call this once
Currently
if(evaluator.
}
Method m = evaluator.
X result = (X) m.invoke(
Could be
X evaluatedResult = evaluator.
if(evaluatedResult == null) {
}
Method m = evaluatedResult
X result = (X) m.invoke(
Accepted bug