Posts tagged gzip
As I’m working on finishing up the GetHuman app for Windows Phone 7 I am trying to make sure it loads fast and never has the user be forced to wait for data to get updated. To begin with I am working to make the main portion of the data update without any user interface slowdown. I am attempting to do this by downloading the data in the background and storing in locally. Also then if the user is in a situation without connectivity it will allow them to have at least one contact method for each company on their phone at any time and not break the basic functionality of the application.
The next time data is pulled is when a company is selected from the main list. At this point alternate contact methods, tips, and ratings are pulled for that individual company listing. To help ensure these options are loaded quickly I enlisted the use of Morten Nielsen’s GZipWebClient (NuGet, blog post, source) and Json.NET.
On the blog Zvonko’s Playground I found this handy little excerpt on how to use the combo of Nielsen’s SharpGIS GZipWebClient and Json.NET to quickly grab the company details and store them for use in the app. (more…)