Mo devoptimization

149 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
149
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mo devoptimization

  1. 1. © 2012 Citrrus LLC. All Rights Reserved.
  2. 2. The iPhone will prove to be more historically significant than the Personal Computer © 2012 Citrrus LLC. All Rights Reserved.
  3. 3. Above a Bar© 2012 Citrrus LLC. All Rights Reserved.
  4. 4. Agile OptimizationStart slow... © 2012 Citrrus LLC. All Rights Reserved.
  5. 5. DebugLog... your best friend#ifdef DEBUG#define DebugLog(...) NSLog(@"%s (%d) %@",__PRETTY_FUNCTION__, __LINE__, [NSStringstringWithFormat:__VA_ARGS__])#else#define DebugLog(...)#endif2012-05-07 18:02:20.775 UVA Magazine[4509:17c03]-[PDFPageViewController viewWillAppear:] (78) View Will Appear for PDF Page © 2012 Citrrus LLC. All Rights Reserved.
  6. 6. Perception“Beauty is everywhere a welcome guest.” Johann Wolfgang von Goethe © 2012 Citrrus LLC. All Rights Reserved.
  7. 7. Images... more than meets the eye+[UIImage imageNamed:] * Reads file * Uncompresses * Caches+[UIImage imageWithContentsOfFile:] * Checks access to file * File is read and uncompressed when image drawn © 2012 Citrrus LLC. All Rights Reserved.
  8. 8. Images... more than meets the eye © 2012 Citrrus LLC. All Rights Reserved.
  9. 9. Memory ManagementUse LessRelease Early and Often © 2012 Citrrus LLC. All Rights Reserved.
  10. 10. NetworkingCombine RequestsCompact your data © 2012 Citrrus LLC. All Rights Reserved.
  11. 11. Fast ScrollingDo your own drawingReuse/RecycleDon’t get in the way of the main thread © 2012 Citrrus LLC. All Rights Reserved.
  12. 12. Burn the resource you haveMemory vs CPU © 2012 Citrrus LLC. All Rights Reserved.
  13. 13. CoreData + SQLiteCoreData + SQLite = partial file access-[NSData initWithContentsOfFile] = full file access © 2012 Citrrus LLC. All Rights Reserved.
  14. 14. EnumerationobjectAtIndexfor(int i=0;i<count;i++){ id item; item = [myObjects objectAtIndex:i]; NSLog(@"Found an Item: %@",item);} NSFastEnumeration for(id item in myObjects) { NSLog@"Found an Item: %@",item); } © 2012 Citrrus LLC. All Rights Reserved.

×