Do more desktops occupy more ram?

I was an exposè addict and so do I am for mission control. I was wondering if for many desktop you have "instantiated" the more your computer slows.

Since I am a developer i always have at least 5 screens, does this impact on performances or it is just a really bit thing in front of actual software running in those desktops?


Solution 1:

I've never seen a single instance here I could pin a performance issue on Mission Control having 5 spaces instead of 15 instead of one.

Something else always seems to be the constraint such as RAM pressure or IO pressure. The code that manages the window system already treats each layer virtually and the math is done in some heavily optimized routines and the data structures there are quite well designed so although in theory - tracking more pixels could be a problem for performance, in reality it isn't.


If you are skeptical, you can reboot your Mac and do this test:

  1. Open whatever set of Apps and documents you want to test with.
  2. Enter Mission control and delete all the spaces except for one.
  3. Open terminal and run vm_stat 60
  4. Watch for a few minutes to be sure all the running processes are done allocating RAM. Switch to each App and hide or show the windows you want for your test. Once the free and active numbers are steady - open mission control and leave it open for a minute or two - then go back and inspect RAM allocations.
  5. Add another 10 spaces and see how RAM allocations change.
  6. Move app windows to any desktop and verify that no significant RAM allocation changes happen when you are using Mission Control and that they only happen when an app opens a new document or window.

Yes - if you tend to keep more things open when you have more "virtual space", that takes more RAM, but the fact that you have X apps and Y windows open is what takes the RAM - not which of Z mission control virtual screens you have open at any one time.