CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    2

    How to store a method in memory

    Hi guys, I am developping a new application (written in C#) for Windows Embedded CE 6.0
    I've a big question for you: I want to maintain some public and compiled methods in memory and then call them whenever I need.
    I think that with a "already compiled" method stored in memory, I can boost the performance of my application.
    Is it possibile? I know it is a "strange" request and maybe It is not feasible but I want to try anyway.

    thanks in advance for all your advices

  2. #2

    Re: How to store a method in memory

    I really don't think what you're after is going to work - remember that .NET basically JIT's any needed code before running anyway. The only delays should be during startup and possibly if you're using more memory than it has space for.

  3. #3
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: How to store a method in memory

    There is native code generator (ngen.exe), which converts IL to native code and should speed up startup of the application, but I don't know if it is available for compact framework too.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured