.NET news » Internet
Ngen or not? The rules haven't changed very much since 2004
I still get questions that amount to "should I ngen my <something>" from time to time and the best answer I can give is still "it depends." I wrote this article many years ago, and I'd say it's still pretty accurate: http://blogs.msdn.com/b/ricom/archive/2004/10/18/244242.aspx
Essentially the situation is this: if you ngen your IL then of course the jit will not have to run but you will have to do more I/O because the compiled code is bigger than the IL. If that I/O is likely to be cached because either:The code is going to be loaded "a goodly amount of time" after ice cold startup and it's commonly used so superfetch is likely to fetch it, or The code is in a library shared by many programs and so only one of those programs at most will have to actually read it at full cost
then it's likely that ngen will help you overall.
If that's not the case then ngen isn't likely to help you. But really you need to measure for yourself.
Remember also that the code generation for ngen'd binaries is going to tend to optimize for maximum sharability which may come at a (typically small) cost in raw speed so that's a factor as well.
The most common framework DLLs, like mscorlib, system.dll and friends, tend to be get the most benefits from ngen. Single-use application libraries and executables tend to get the least benefit.
It's really hard to say more than that with any kind of precision.
Don't Get Me Started: Lowering Higher Education
Introducing jQuery Mobile
The newest member of the jQuery family of projects is jQuery Mobile. A good way to describe what jQuery Mobile is to think of it as jQuery UI for mobile devices. If you have wanted to write mobile-optimized UIs over your applications, jQuery Mobile is a library that you will want to add to your bag of tricks. Like jQuery UI, jQuery Mobile is themeable. This article makes two assumptions. First, you are familiar with jQuery and second, you are familiar with jQuery UI. If you are not familiar with jQuery or jQuery UI, I suggest that you take a moment to familiarize yourself with those libraries. Fortunately, the websites for these projects (jquery.com and jQueryUI.com respectively) are replete with comprehensive documentation and code examples. jQuery Mobile is no different. The official website for jQuery Mobile is jquerymobile.com. As of this writing, jQuery Mobile 1.0 Beta 3 has been released. Its beta status notwithstanding, jQuery Mobile is ready for primetime and has been incorporated into many applications already. In this article, I will cover what you need to get started with some simple examples that illustrate how to create one page and multi-page apps. In addition, I’ll touch upon the theming capabilities in jQuery Mobile.
File Transfer Protocol (FTP) Client
Website Testing Techniques
Going to Internet Explorer
Many of you have commented that I've been kind of quiet lately. This was largely a reflection of my job, I was working on an internal team that I could not write much about for the last couple of years. I had a great experience there but that trek is now coming to an end. In a few days I'll be working on Internet Explorer and back in the thick of the public facing products. IE is a very exciting place to be and I'm sure it will be loaded with issues I can write about that will be of general interest without giving away product plans and so forth.
I hope to be writing a lot more in the coming months.
Thank you for your support over the years :)
Extending Asp.Net role based Security with Custom Security Module (Permission Based, Page Level Authorization)
Receiving Mail through the POP3 Protocol & MIME Parser
I know I haven't posted for a while; I'm hoping that will change soon. However in the mean time my daughter forwarded me this link because she thought it was cute.
The thing is, she didn't realize it should be my theme song.
It's rule #1
Now even Sesame Street agrees! It must be right!
Using a WPF Docking Manager in a PowerBuilder WPF Target