public DifferenceEngine() { _source = null; _destination = null; _matchList = null; _stateList = null; _level = DifferenceEngineLevel.FastImperfect; }
public double ProcessDifferences(IDifferenceList source, IDifferenceList destination) { DateTime dt = DateTime.Now; _source = source; _destination = destination; _matchList = new ArrayList(); int dcount = _destination.Count(); int scount = _source.Count(); if ((dcount > 0) && (scount > 0)) { _stateList = new DifferenceStateList(dcount); ProcessRange(0, dcount - 1, 0, scount - 1); } TimeSpan ts = DateTime.Now - dt; return(ts.TotalSeconds); }
public double ProcessDifferences(IDifferenceList source, IDifferenceList destination) { DateTime dt = DateTime.Now; _source = source; _destination = destination; _matchList = new ArrayList(); int dcount = _destination.Count(); int scount = _source.Count(); if ((dcount > 0) && (scount > 0)) { _stateList = new DifferenceStateList(dcount); ProcessRange(0, dcount - 1, 0, scount - 1); } TimeSpan ts = DateTime.Now - dt; return ts.TotalSeconds; }