Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThanks. But now I am entirely confused about the memory usage of autorelease as other people have told me the exact opposite: ONLY USE IT IF YOU REALLY REALLY HAVE TO... perhaps its best to talk about hard figures. An iPhone has how much memory? 256MB? How much of that is usually used for the iOS? How much is there for my App? How much does, for example, a simple string need in terms of memory? 256 bytes? How many strings would I need to create to run into serious memory problems so that it crashes my app? ... Sorry, but I'm thoroughly confused about all of this.
      singulars
    2. CO@n.evermind you should be fine using `autorelease` unless you can *prove* that its 1) causing a *measurable* slowdown in your app or 2) causing memory to build up unnecessarily. You'll never be able to prove 1), and if 2) is a problem, you're always welcome to make your own autorelease pools.
      singulars
    3. COPerhaps you should ask the people you've given you this "only if you really have to" advice why they say that. Sounds more like superstition than good advice to me. Looking at TheElements in Instruments, I see 1017 live strings consuming about 28K of data. If you keep to that average, you'd have to create 37,000+ autoreleased strings to consume just one megabyte, and they'd all be released as soon as the autorelease pool is drained, which happens when control returns to the run loop (or when you drain your own pool).
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload