New Json.NET is here – smaller and faster

The latest release of Json.NET has a lot of improvements which make it preferable to other techniques. The team has done really a great job to increase the speed of both serialization and deserialization.

Json.NET is faster than both the JavaScriptSerializer and the WCF DataContractJsonSerializer over all scenarios. It reached the level of the XML based DataContractSerializer which is pretty remarkable. Json.NET over binary (BSON) is considerably faster than the .NET BinaryFormatter, too. Another one of the benefits of JSON is its smaller size when compared to equivalent XML. The output of Json.NET is less than half the size of the XML that DataContractSerializer produces. Read more about these tests on James Newton’s post.

Download the latest release of Json.NET and try it yourself!

Application Architecture Guide v2 – Free eBook

Microsoft Application Architecture Guide, 2nd Edition is a Must Have eBook for Developers and Solution Architects. The guide is intended to help developers and solution architects design and build effective, high quality applications using the Microsoft platform and the .NET Framework more quickly and with less risk. It provides guidance for using architecture principles, design principles, and patterns that are tried and trusted. The guidance is presented in sections that correspond to major architecture and design focus points. It is designed to be used as a reference resource or to be read from beginning to end.

The guide helps you to:

  • Understand the underlying architecture and design principles and patterns for developing successful solutions on the Microsoft platform and the .NET Framework.
  • Identify appropriate strategies and design patterns that will help you design your solution’s layers, components, and services.
  • Identify and address the key engineering decision points for your solution.
  • Identify and address the key quality attributes and crosscutting concerns for your solution.
  • Create a candidate baseline architecture for your solution.
  • Choose the right technologies for your solution.
  • Identify patterns & practices solution assets and further guidance that will help you to implement your solution.

.NET Memory Management

When you write managed code you propably think “Hey, .NET manages the memory, so I don’t care about it”. But you are not right. When you write code, no matter what the programming language is, you should always think about memory, especially when it comes to performance optimization. Although .NET provides a managed environment, memory leaks can still occur if you are not cautious.

Here is a great video explaining .NET memory management in details.

  1. Why memory matters
  2. .NET Memory and Garbage Collection
  3. Generational Garbage Collection
  4. Temporary Objects
  5. Large Object Heap and Fragmentation
  6. Finalization
  7. Memory Problems
  8. Summary