RadControls for ASP.NET AJAX - Now with more speed!
Posted by: the telerik blogs,
on 15 Oct 2009 |
View original | Bookmarked: 0 time(s)
The Q3 2009 release comes packed with goodies and we hope youll enjoy the new additions to your toolbox. And its fast too.
For starters, a number of micro-optimizations on the client-side has resulted in less boilerplate code. But the big breakthrough comes on the server-side where you can expect improvements of up to 30%, depending on your scenario.
So, how did we manage to do it? By deleting code, of course. Well, not just any code, but a reflection-intensive piece that was seeing a lot of use.

Just dont spend too much time Reflecting.
(Photo by
http://www.flickr.com/photos/welshbaloney/)
The code in question is crucial to control operations the DescribeComponent method. Its responsible for serializing control properties and sending them to the client-side control counter-parts. Until now this was done with reflection, but weve figured out a way to get rid of it. It was replaced with a set of shiny new T4 templates that do the same job, but at compile time.
Dont just take my word for it - we have benchmarks. The test page is a typical* form:
* User Experience experts can show signs of violent disagreement upon reading this statement.Agree with everything they say and youll be fine.
Ive used the excellent Eqatec Profiler (its free by the way - http://www.eqatec.com/tools/profiler) for measuring performance:
Thats almost 30% improvement! I know, I know its only 27,55344%, but its still pretty good!
The Q3 2009 Beta will be available in your Client.NET accounts tomorrow. Feedback is welcome, as usual!
You can download the sample project here:
DescribeComponent.zip