Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 150087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:14:04+00:00 2026-05-11T09:14:04+00:00

Working on .NET gives me good performance in general for the application itself but

  • 0

Working on .NET gives me good performance in general for the application itself but the initial load times for my application are quite large. A lot of it goes towards loading assemblies which is difficult to gauge.

Are there any optimizations that I can apply to my assemblies to make them faster to load without involving the GAC or Ngen and those are not available for ClickOnce?

This is a WinForms 2.0 project. I can upgrade it to a 3.5 but that limit my user base. I have .NET Framework 3.5 installed on my machine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:14:05+00:00Added an answer on May 11, 2026 at 9:14 am

    I have created a very small .exe that shows a splash screen asap. After that I initialize everything.

    The JIT-compiler loads modules that are called from the method that is being jitted. So you have to take care that the method that shows the splash screen, does not call methods in modules that you do not want loaded yet.

    Example:

    internal sealed class Startup {      // Call Startup.Run() from Program.Main to start the application     internal void Run() {         this.ShowSplash();         this.ContinueStartup();     }      private void ShowSplash() {         _splash = new Splash();         _splash.Show();         Application.DoEvents();     }      [MethodImpl(MethodImplOptions.NoInlining)]     private void ContinueStartup() {         // Do the startup here     } } 

    The [MethodImpl(MethodImplOptions.NoInlining)] is needed so the ContinueStartup() method does not get inlined by the jit, because that will cause the modules to be loaded too early.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working in a .net application where we need to generate XML files on
Working on an ASP.NET MVC 3 (Razor) application, that's mainly concerned with UGC (user
After working with .NET's HttpWebRequest / Response objects, I'd rather shoot myself than use
When I am working in .NET 2.0 projects with the newest version of ReSharper
I'm working in .Net 3.5sp1 in C# for an ASP.Net solution and I'm wondering
What profilers have you used when working with .net programs, and which would you
So, I am working with .NET. I have an XSL file, XslTransform object in
When working on ASP.NET 1.1 projects I always used the Global.asax to catch all
When working with my .Net 2.0 code base ReSharper continually recommends applying the latest
I'm working on a .net solution that is run completely inside a single network.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.