New Release - ObjectMapper .NET 1.2.716.0
Posted by Gerhard Stephan on August 17th, 2006
This release is mainly a performance release.
Using dotNet 2.0 and Visual Studio the ObjectMapper .NET gained about 200% performance compared to the last version. This was possible because I could replace the time-consuming reflection method invocation with a direct delegate call to a dynamic method created at runtime.
The graph shows the differens when loading 10000 objects with about 18 columns.
As a second advantage I added a new feature to the Virtual Links that allows you that the source of a Virtual Link can be also a Virtual Link. Thus enables you to flatten object hierarchies when loading.
/// <summary>
/// Division Key
/// </summary>
[PropertyName("DIVISION")]
[PropertyLength(5)]
public string DivisionKey
{
get { return _divisionKey; }
set { _divisionKey = value; }
}
/// <summary>
/// Head of Division Key
/// </summary>
[VirtualLink(typeof (Division), "FilterKey", "Key", "DivisionKey")]
public string HeadOfDivisionKey
{
get { return _headOfDivisionKey; }
set { _headOfDivisionKey = value; }
}
/// <summary>
/// Name of the head of Division
/// </summary>
[VirtualLink(typeof(Division), "Value", "Key", "HeadOfDivisionKey")]
public string HeadOfDivisionText
{
get { return _headOfDivisionText; }
set { _headOfDivisionText = value; }
}
Hope you enjoy the new version.
Cheers
Gerhard


August 17th, 2006 at 8:46 pm
Gerhard!
i am amazed about this!
As you know you and i are always looking for the get the ObjectMapper.NET fast - on database side and on the .NET side. This is a great success in gaining the best performance.
Karl