Пример #1
0
        private static void PrintPathsHaveHashEnumerator()
        {
            var rootEntries = RootEntry.LoadCurrentDirCache();
            var pdee        = CommonEntry.GetPairDirEntries(rootEntries);

            foreach (var pairDirEntry in pdee)
            {
                var hash = pairDirEntry.ChildDE.IsHashDone ? "#" : " ";
                var bang = pairDirEntry.PathProblem ? "!" : " ";
                Console.WriteLine($"{hash}{bang}{pairDirEntry.FullPath}");
                if (Hack.BreakConsoleFlag)
                {
                    break;
                }
            }
        }
Пример #2
0
        public long DoPairDirEntryEnumeratorTest(RootEntry root, int repeatCount)
        {
            var sw = new Stopwatch();

            sw.Start();
            var rootEntries = new List <RootEntry> {
                root
            };
            var pairDirEntries = CommonEntry.GetPairDirEntries(rootEntries);

            for (var i = 0; i < repeatCount; i++)
            {
                pairDirEntries.ToList();
            }
            sw.Stop();
            return(sw.ElapsedMilliseconds);
        }