My application usually only takes up ~40M of memory but when Core Text is used VSIZE jumps up to ~300M. How can I get Core Text to use less memory?
P.S. : I use lots of Core Text objects.
P.S. 2 : I use ‘top’ to get memory info.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
First, VSIZE is not really a good indicator of how much “memory” your app is using. It is more an indicator of how much of your virtual address space is in use, which includes things like memory (RAM), mmap-ed files, etc. For 64-bit apps in particular, VSIZE will always be large (> 1 GB).
If you want to know how much physical memory you’re using, check RSIZE instead.
Have you noticed anything abnormal about your program? Does the memory usage grow over time when using CoreText? If so then you may have a leak, in which case the best approach would be to profile your app using Instruments to see if your code is leaking.