comparison Implab/Formats/ReaderScanner.cs @ 183:4f82e0f161c3 ref20160224

fixed DFA optimization, JSON is fully functional
author cin
date Fri, 25 Mar 2016 02:49:02 +0300
parents 0c3c69fe225b
children
comparison
equal deleted inserted replaced
182:76e8f2ba12b8 183:4f82e0f161c3
1 using System; 1 using System;
2 using System.IO; 2 using System.IO;
3 3
4 namespace Implab.Formats { 4 namespace Implab.Formats {
5 public class ReaderScanner: TextScanner { 5 public class ReaderScanner: TextScanner {
6 const int CHUNK_SIZE = 1024; 6 const int CHUNK_SIZE = 1024*4;
7 const int BUFFER_MAX = CHUNK_SIZE*1024; 7 const int BUFFER_MAX = CHUNK_SIZE*1024;
8 8
9 readonly TextReader m_reader; 9 readonly TextReader m_reader;
10 10
11 public ReaderScanner(TextReader reader, int limit, int chunk) : base(limit, chunk) { 11 public ReaderScanner(TextReader reader, int limit, int chunk) : base(limit, chunk) {