Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/28/10 11:33:38 (15 years ago)
Author:
epitzer
Message:

replace repeated calls through reflection with generated code for a twofold speedup (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/ConfigurationService.cs

    r3037 r3553  
    175175              PrimitiveSerializers.Add(primitiveSerializer.SerialDataType, new List<IPrimitiveSerializer>());
    176176            PrimitiveSerializers[primitiveSerializer.SerialDataType].Add(primitiveSerializer);
    177             Logger.Debug(String.Format("discovered primitive serializer {0} ({1} -> {2})",
    178               t.VersionInvariantName(),
    179               primitiveSerializer.SourceType.AssemblyQualifiedName,
    180               primitiveSerializer.SerialDataType.AssemblyQualifiedName));
    181177          }
    182178          if (t.GetInterface(typeof(ICompositeSerializer).FullName) != null &&
    183179              !t.IsAbstract && t.GetConstructor(Type.EmptyTypes) != null && !t.ContainsGenericParameters) {
    184180            CompositeSerializers.Add((ICompositeSerializer)Activator.CreateInstance(t, true));
    185             Logger.Debug("discovered composite serializer " + t.AssemblyQualifiedName);
    186181          }
    187182          if (t.GetInterface(typeof(IFormat).FullName) != null &&
     
    189184            IFormat format = (IFormat)Activator.CreateInstance(t, true);
    190185            Formats.Add(format);
    191             Logger.Debug(String.Format("discovered format {0} ({2}) with serial data {1}.",
    192               format.Name,
    193               format.SerialDataType,
    194               t.AssemblyQualifiedName));
    195186          }
    196187        }
Note: See TracChangeset for help on using the changeset viewer.