Random header image... Refresh for more!

Well… That could be part of the problem.

Apparently merged.SourceData has 45 million lines in it.

I’m thinking that could be where I went wrong…

foreach (Indexer toMerge in indexers)
{
    merged.Name += "|" + toMerge.Name;
    foreach (KeyValuePair<EchoToken, List<string>> record in toMerge.TokenTable)
   {
         if (merged.TokenTable.ContainsKey(record.Key))
         {
               merged.TokenTable[record.Key].AddRange(record.Value);
         }
         else
         {
              merged.TokenTable[record.Key] = record.Value;
         }

         merged.SourceData.AddRange(toMerge.SourceData);
    }
}

Well, of course I want to add the Source Data for EVERY SINGLE TOKEN IN THE TABLE.  That’s not a disaster waiting to happen or anything like that…

I’ll just move that one curly brace up a few lines before anyone notices…

0 comments

There are no comments yet...

Kick things off by filling out the form below.

Leave a Comment