Reputation: 2775
I have a really big chunk of JSON i'm deserializing with Newtonsoft.json
Users.UserDataDict response = JsonConvert.DeserializeObject<Users.UserDataDict>(teststring);
I notice that the first time I call this method it's really slow (hundreds of milliseconds longer than it needs to be). So what I'm doing is calling it when the app starts on some large dummy data in so that when the user is interacting with the app it's not slow. Is there anyway I can just initialize it properly or increase it's buffer size or whatever needs done rather than calling it on start up on some really large data?
Upvotes: 1
Views: 557