WordPressReader (Standard) version 1.2.0 focuses on improving performance

In the last few days, I was working on some improvements for my WordPressReader (Standard) library. I am happy to announce that an update to version 1.2.0 is now available.
WP Lib Title

The update contains several improvements to the HttpClientimplementation, which should improve performance of the library a lot:

  • all handlers now use one static HttpClientinstance. HttpClientis built to use it that way, and there is also no problem with multiple request handled by that instance. So everyone should use it in that way
  • the library is now actively enforcing gzip/deflate compression to make responses faster, especially when requesting bigger lists of items (if you want do deactivate it on the managed implementation, pass in falsewith the new useCompressionparameter with your call to the SetupClientmethod
  • deserialization by default now happens directly from the HttpResponsestream instead of first converting it to a string
  • added an API to pass in your own HttpClientinstance instead of the managed one (you could even use one static instance for your whole app this way to improve performance even further). To do so, just use the newly added method SetCustomClient(HttpClient client)on your handler instances.

I made this changes working without breaking existing implementations. Just by updating the library, you will get a better performance.

I also updated the source code on GitHub. If you just want to update the library, the update is already available on NuGet.

Happy coding, everyone!

P.S.
If you want to see the library in a live app, you can download my official blog reader app (which is written around it as a Xamarin.Formsapp) here:

iOS  Android  Windows 10

Comments 1
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Prev
Xamarin Android: asymmetric encryption without any user input or hardcoded values
lock_encyprtion_title_android

Xamarin Android: asymmetric encryption without any user input or hardcoded values

Next
How to perform asymmetric encryption without user input/hardcoded values with Xamarin iOS
key_chain_encryption_title_ios

How to perform asymmetric encryption without user input/hardcoded values with Xamarin iOS

You May Also Like

This website uses cookies. By continuing to use this site, you accept the use of cookies.  Learn more