Code

Serializers in .NET. v.2

[v.2.9.0 2015-08-19] I've decided to keep live the first version of this post. It is interesting how tests evolve and how results change. V.1.0.10 see here. The v.2 was inspired by OniBait, thanks a lot! He added code for Avro and Bond serializers, added 99st% to measurements, made other improvements which significantly impacted results. That’s the force and beauty of the open source.Small improvements in the project code change results all the time. So I just mention the last improvement date. The ......

XML Transformation: Xslt vs .NET. Part 3.

Part 1.Part 2.Part 3. Max Toro commented on the Part 1 and his suggestions changed a lot. So, I have added this Part. It shows, how a small optimization could change the test results. Actually, I have added just two lines of code, that’s it.Next update is related to the garbage collection. Results were unstable, not now. The changes again were in small piece of code in test cycle:GC.Collect(); GC.WaitForFullGCComplete();... got additional numbers. The Max time is important in ......

XML Transformation: Xslt vs .NET. Part 2

Part 1.Part 2.Part 3. In the first part, I have compared the Xslt transformations of the XML documents with the Object transformations. It happens the Object transformations are faster in most cases. They are also simpler from the developer point of view. The next natural question is “If we use Json instead of XML, how faster the transformations would be?” If we got a freedom to choose Object transformations instead of Xslt transformations, it might be, we got even more freedom and choose Json or ......

XML Transformation: Xslt vs .NET. Part 1.

Part 1.Part 2.Part 3. The Xml transformation is an important part of the system integration. The Xml documents are everywhere despite surging JSON. When we need to transform [or map] one Xml document to another Xml, we have several options. Two of them prevail. The first is the Xslt language. The second is the object transformation. Xslt Transformations The Xslt language was created exactly for this purpose, to transform one Xml document to another Xml document. I am copying the Abstract of the Xslt ......

Serializers in .NET

This post is obsolete and kept only for sentimental reasons :)Please go to the v.2 of this article.The project code is on GitHub. Any distributed system requires serializing to transfer data through the wires. The serializers used to be hidden in adapters and proxies, where developers did not deal with the serialization process explicitly. The WCF serialization is an example, when all we need to know is where to place the [Serializable] attributes. Contemporary tendencies bring serializers to the ......

Copying a new build to all environments

I am doing this task again and again, so maybe this code will be helpful not only for me. That is a standard routine. I am developing a BizTalk Server applications and use the BizTalk Deployment Framework (BTDF) for all my deployments. When an application is ready for testing and, at the end, for production, the build files have to be deployed. Usually the BizTalk installation has several environments. For example, the environments can be: Development, QA, Staging, Production. Sometime less, sometime ......