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 8429841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:26:54+00:00 2026-06-10T05:26:54+00:00

I have been tasked with reducing memory footprint of a Windows CE 5.0 application.

  • 0

I have been tasked with reducing memory footprint of a Windows CE 5.0 application. I came across Rob Tiffany’s highly cited article which recommends using managed DLL to keep the code out of the process’s slot. But there is something I don’t understand.

The article says that

The JIT compiler is running in your slot and it pulls in IL from the 1
GB space as needed to compile the current call stack.

This means that all the code in the managed DLL can potentially eventually end up in the process’s slot. While this will help other processes by not loading the code in common area how does it help this process? FWIW the article does mention that

It also reduces the amount of memory that has to be allocated inside your

My only thought is that just as the code is pulled into the slot it is also pushed/swapped out. But that is just a wild guess and probably completely false.

  • 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. Editorial Team
    Editorial Team
    2026-06-10T05:26:55+00:00Added an answer on June 10, 2026 at 5:26 am

    CF assemblies aren’t loaded into the process slot like native DLLs are. They’re actually accessed as memory-mapped files. This means that the size of the DLL is effectively irrelevant.

    The managed heap also lies in shared memory, not your process slot, so object allocations are far less likely to cause process slot fragmentation or OOM’s.

    The JITter also doesn’t just JIT and hold forever. It compiles what is necessary, and during a GC may very well pitch compiled code that is not being used, or that hasn’t been used in a while. You’re never going to see an entire assembly JITTed and pulled into the process slow (well if it’s a small assembly maybe, but it’s certainly not typical).

    Obviously some process slot memory has to be used to create some pointers, stack storage, etc etc, but by and large managed code has way less impact on the process slot limitations than native code. Of course you can still hit the limit with large stacks, P/Invokes, native allocations and the like.

    In my experience, the area people get into trouble most often with CF apps an memory is with GDI objects and drawing. Bitmaps take up a lot of memory. Even though it’s largely in shared memory, creating lots of them (along with brushes, pens, etc) and not caching and reusing is what most often give a large managed app memory footprint.

    For a bit more detail this MSDN webcast on Compact Framework Memory Management, while old, is still very relevant.

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

Sidebar

Related Questions

I have been tasked to create a form designer application in Windows Forms. The
I have been tasked to add an on-line help file to a windows application.
I have been tasked with securing the connection string in an classic ASP application
I have been tasked to replace the hardware an existing Apache/Tomcat/MySQL application is running.
I have been tasked with writing an ADP application using Access. The back-end data
I have been tasked with taking an Access 97 application and moving the back-end
I have been tasked with upgrading a large web application from .net 1.1 to
I have been tasked with setting up an internal web application to become public
I have been tasked for university to program a mobile phone application. I have
I have been tasked to look after an ASP.Net WebForms application that communicates with

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.