• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: VSIZE, apps without AppKit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VSIZE, apps without AppKit


  • Subject: Re: VSIZE, apps without AppKit
  • From: Greg Titus <email@hidden>
  • Date: Fri, 5 Apr 2002 14:47:34 -0800

Hi Angela,

The VSIZE is the virtual size of the application, that is, how much memory address space this application has access to. This is a very misleading number if you don't understand exactly what it is, because it includes all shared memory.

Any application which uses AppKit will have the AppKit framework code and resources loaded into it, but OS X is able to share memory between processes. So each application will _not_ have a separate copy of that AppKit code and resources, but will all be using the exact same copy in memory. However, it will show up as 30-50MB of VSIZE on _each_ of those applications because all of them are able to access those 30-50MB.

So if there are any other Cocoa applications running on the system at all that are linked to AppKit, having your tool also using AppKit will use zero additional memory for the AppKit code and resources. (Of course, if AppKit code creates objects in your app, like an NSApplication object, those are not shared.)

So no, the extra size will not slow the system down at all, unless it is the only process on the whole system which is using AppKit. (Very unlikely.)

Hope this helps,
--Greg

On Friday, April 5, 2002, at 02:01 PM, Angela Brett wrote:
I wrote a Foundation Tool, which I have now put into an Application solely so that it can be added as a Login Iten. I've removed all remnants of the AppKit from the project, since I don't need it and as soon as I use anything from the AppKit the VSIZE (as mentioned in top) goes up to about 30 or 50MB. I don't know ir that's really a bad thing, but it seems quite wasteful for something which is meant to be running all the time, and which doesn't actually need anything from the AppKit. That's my first question... if I do use the AppKit in this program, how much difference does that really make? Will that extra size slow down the system at all?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: VSIZE, apps without AppKit
      • From: Angela Brett <email@hidden>
References: 
 >VSIZE, apps without AppKit (From: Angela Brett <email@hidden>)

  • Prev by Date: Re: VSIZE, apps without AppKit
  • Next by Date: Re: VSIZE, apps without AppKit
  • Previous by thread: Re: VSIZE, apps without AppKit
  • Next by thread: Re: VSIZE, apps without AppKit
  • Index(es):
    • Date
    • Thread