Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/25/08 14:46:58 (16 years ago)
Author:
gkronber
Message:

performance tuning of functions framework by removing the need for calling Activator in StorableBase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Functions/Constant.cs

    r189 r192  
    8282
    8383    public override object Clone(IDictionary<Guid, object> clonedObjects) {
    84       ConstantFunctionTree clone = (ConstantFunctionTree)base.Clone(clonedObjects);
     84      ConstantFunctionTree clone = new ConstantFunctionTree();
     85      clonedObjects.Add(clone.Guid, clone);
     86      FillClone(clone, clonedObjects);
    8587      clone.UpdateCachedValues();
    8688      return clone;
Note: See TracChangeset for help on using the changeset viewer.