.NET news » Internet Internet Rss Feed

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.

31 Jan 2012, 13:53:00   Source: Ngen or not? The rules haven't changed very much since 2004   Tags: Internet

Don't Get Me Started: Lowering Higher Education

The Internet is set to hammer the higher education industry in the same way it hammered the newspaper industry. I hope that my industry will respond to this challenge with creativity and imagination that will make the world a better place. I expect to find the landscape radically different when my daughters start college, 9 years from now.
2 Jan 2012, 18:00:00   Source: Don't Get Me Started: Lowering Higher Education   Tags: Internet

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.

20 Dec 2011, 18:00:00   Source: Introducing jQuery Mobile   Tags: Internet

File Transfer Protocol (FTP) Client

Connect to FTP Server,Download,Upload,Rename and Delete Files or Directories
1 Dec 2011, 19:14:00   Source: File Transfer Protocol (FTP) Client   Tags: Internet

Website Testing Techniques

Website testing techniques
28 Nov 2011, 08:13:00   Source: Website Testing Techniques   Tags: Internet

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 :)

12 Nov 2011, 11:21:00   Source: Going to Internet Explorer   Tags: Internet

Extending Asp.Net role based Security with Custom Security Module (Permission Based, Page Level Authorization)

This project intends to extend the default Asp.Net role based Security to include Permission Based / Page Level Authorization Layer. Works with both ASP.Net and Asp.Net MVC. Permission rules to Allow/Deny access to website resources (like "Folder/File.aspx" or "Controller/Action" ) are stored in DB
12 Nov 2011, 04:28:00   Source: Extending Asp.Net role based Security with Custom...   Tags: Internet

Receiving Mail through the POP3 Protocol & MIME Parser

This article describes how to create a simple class library to get the mail through the POP3 protocol and MIME parser.
29 Sep 2011, 20:24:00   Source: Receiving Mail through the POP3 Protocol & MIME Parser   Tags: Internet

Measure!

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.

http://www.youtube.com/watch?v=MMsQYjYlBEo

It's rule #1

http://blogs.msdn.com/b/ricom/archive/2003/12/02/40779.aspx

Now even Sesame Street agrees!  It must be right!

 

20 Sep 2011, 14:41:00   Source: Measure!   Tags: Internet

Using a WPF Docking Manager in a PowerBuilder WPF Target

In a previous PBDJ article, we looked at using a third-party control, a ribbon control in particular, in a PowerBuilder WPF target. One of the other “most requested” features people have asked for is the capability to provide docking windows in their PowerBuilder applications. In this article, we’re going to look at how we can do that in a PowerBuilder WPF application using a third-party docking manager. The particular docking manager I’m going to use is the AvalonDock, an open source project on CodePlex (http://avalondock.codeplex.com/). At the time of this writing, the current version is 1.3.3571. However, that one has some dependencies on Visual Studio 2010 and .NET Framework 4.0 libraries. PowerBuilder .NET 12 is based on the Visual Studio 2008 isolated shell, so I’m using an older build (1.1.1509) that doesn’t have these dependencies. First, we’ll add the AvalonDock assembly and a reference to a new WPF application. Create a new WPF window and add the AvalonDock namespace to the Usings property for the new window. I called that new window w_frame, and coded the open event of the application object to open it. I then dropped a DockingManager control onto the window. Next create a menu (I called mine m_menu) and associate that menu with the new window as well.

read more

16 Aug 2011, 09:02:00   Source: Using a WPF Docking Manager in a PowerBuilder WPF Target   Tags: Internet