Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Stopwatch sw = new Stopwatch();
            sw.Start();
            IEnumerable<string> files;

            SortedRowBuffer chunker = new SortedRowBuffer(Console.In);
            files = chunker.Chunk();

            using (SortedRowFileMerger merger = new SortedRowFileMerger(Console.Out))
            {
                merger.Merge(files);
            }

            sw.Stop();
            System.Diagnostics.Debug.WriteLine(sw.Elapsed);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();
            IEnumerable <string> files;

            SortedRowBuffer chunker = new SortedRowBuffer(Console.In);

            files = chunker.Chunk();

            using (SortedRowFileMerger merger = new SortedRowFileMerger(Console.Out))
            {
                merger.Merge(files);
            }

            sw.Stop();
            System.Diagnostics.Debug.WriteLine(sw.Elapsed);
        }