comparison Implab/Formats/JSON/JsonTextScanner.cs @ 229:5f7a3e1d32b9 v2

JsonXmlReader performance tuning JsonScanner now operates strings and doesn't parses number and literals. Added SerializationHelpers to common serialize/deserialize operations
author cin
date Tue, 12 Sep 2017 19:07:42 +0300
parents 6fa235c5a760
children
comparison
equal deleted inserted replaced
228:6fa235c5a760 229:5f7a3e1d32b9
5 using System.Text; 5 using System.Text;
6 using System.Threading.Tasks; 6 using System.Threading.Tasks;
7 7
8 namespace Implab.Formats.Json { 8 namespace Implab.Formats.Json {
9 public class JsonTextScanner : JsonScanner { 9 public class JsonTextScanner : JsonScanner {
10 const int _bufferSize = 4096; 10 const int _bufferSize = 16*4096;
11 readonly TextReader m_reader; 11 readonly TextReader m_reader;
12 12
13 JsonTextScanner(TextReader reader, char[] buffer) : base(buffer, 0, 0) { 13 JsonTextScanner(TextReader reader, char[] buffer) : base(buffer, 0, 0) {
14 m_reader = reader; 14 m_reader = reader;
15 } 15 }