Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5052


Ignore:
Timestamp:
12/07/10 10:25:41 (14 years ago)
Author:
mkommend
Message:

Removed unused caching code (ticket #1256).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SimpleArithmeticExpressionInterpreter.cs

    r5051 r5052  
    3636  // not thread safe!
    3737  public sealed class SimpleArithmeticExpressionInterpreter : NamedItem, ISymbolicExpressionTreeInterpreter {
    38     private struct InstructionEvaluation {
    39       int instructionIndex;
    40       int row;
    41     }
    42 
    4338    private class OpCodes {
    4439      public const byte Add = 1;
     
    112107    private double[] argumentStack = new double[ARGUMENT_STACK_SIZE];
    113108    private int argStackPointer;
    114     private Dictionary<InstructionEvaluation, double> cachedEvaluations;
    115109
    116110    public override bool CanChangeName {
     
    131125    public SimpleArithmeticExpressionInterpreter()
    132126      : base() {
    133       cachedEvaluations = new Dictionary<InstructionEvaluation, double>();
    134127    }
    135128
    136129    public IEnumerable<double> GetSymbolicExpressionTreeValues(SymbolicExpressionTree tree, Dataset dataset, IEnumerable<int> rows) {
    137130      this.dataset = dataset;
    138       cachedEvaluations.Clear();
    139131      var compiler = new SymbolicExpressionTreeCompiler();
    140132      compiler.AddInstructionPostProcessingHook(PostProcessInstruction);
     
    146138        yield return Evaluate();
    147139      }
    148       cachedEvaluations.Clear();
    149140    }
    150141
Note: See TracChangeset for help on using the changeset viewer.