Can I optimize this at all?

Posted by Moshe on Stack Overflow See other posts from Stack Overflow or by Moshe
Published on 2010-12-27T00:35:30Z Indexed on 2010/12/27 1:54 UTC
Read the original article Hit count: 194

I'm working on an iOS app and I'm using the following code for one of my tables to return the number of rows in a particular section:

return [[kSettings arrayForKey:@"views"] count];

Is there any other way to write that line of code so that it is more memory efficient?

EDIT:

kSettings = NSUserDefaults standardUserDefaults.

Is there any way to rewrite my line of code so that whatever memory it occupies is released sooner than it is released now?

© Stack Overflow or respective owner

Related posts about Performance

Related posts about optimization