Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/17 20:07:13 (7 years ago)
Author:
pkimmesw
Message:

#2665 PooledPushProgram reduces memory usage and increases performance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/ExpressionTable.cs

    r14745 r14746  
    55
    66  using HeuristicLab.Problems.ProgramSynthesis.Push.Attributes;
     7  using HeuristicLab.Problems.ProgramSynthesis.Push.Data.Pool;
    78  using HeuristicLab.Problems.ProgramSynthesis.Push.Stack;
    89
     
    123124    }
    124125
    125     public static PushProgram GetProgram(int[] index) {
     126    public static PushProgram GetProgram(IManagedPool<PushProgram> pool, int[] index) {
    126127      var expressions = new Expression[index.Length];
    127128
     
    130131      }
    131132
    132       return new PushProgram(expressions);
     133      return PushProgram.Create(pool, expressions);
    133134    }
    134135
Note: See TracChangeset for help on using the changeset viewer.