Click here to load reader

soft-shake.ch - Optimizing iOS applications

  • View
    2.004

  • Download
    2

Embed Size (px)

DESCRIPTION

Marc-Antoine Scheurer Tips and tricks to get the best performance out of an iOS application.

Text of soft-shake.ch - Optimizing iOS applications

  • 1. 2010 Optimizing iOS applications Marc-Antoine Scheurer i5
  • 2. Programme de la Confrence www.soft-shake.ch Agilit iPhone Java Incubateur 8:15 Accueil des participants 8:40 Mot des organisateurs & Crie des orateurs 9:00 Keynote de Nicolas Martignole (30 minutes) 9:40 - A1 - - I1- - J1 - - X1 - Le terrain Agile Hello iPhone NOSQL also means RDF stores: an Le dveloppement durable Android case study 10:40 Jean-Philippe Vigniel Stephane Tavera Fabrizio Giudci Dominic Williams 11:00 - A2 - - I2 - - J2 - - X2 - Integration of User Centered Design Dveloppement d'une application La Tequila du dveloppement Web Cloud Computing: anatomie et in Agile Development of RIA iPhone pilote par les tests pratique 12:00 J. Borkenhagen,J. Desmazires Emmanuel Etasse, Van-Charles Tran Nicolas Martignole Marc-Elian Bgin 12:20 - A3 - - I3 - - J3 - - X3 - Adoption de l'Agilit par les usages Distribution d'applications iPhone Vaadin - Rich Web Applications in Les DVCS sont vos amis en Entreprise: Ralisation d'un Server-side Java without Plug-ins or Xavier Warzee AppStore interne JavaScript Sbastien Douche 13:20 Graud de Laval Joonas Lehtinen Pause repas (50 minutes) 14h10 Keynote de Regis Medina (30 minutes) 14h50 - A4 - - I4 - - J4 - - X4 - Scrum, introduction et mise en Agile iOS Development JAX-RS and Java EE 6 IT Design & Ergonomy oeuvre avec iceScrum 15h50 Claude Aubry Jrme Layat, Alexander Osterwalder Paul Sandoz Pascal Petit, Aude Lussigny 16h10 - A5 - - I5 - - J5 - - X5 - Agilit : 10 ans dj Optimizing iOS applications Ecrivez et automatisez vos tests NoSQL : Enn de la biodiversit fonctionnels avec jBehave dans l'cosystme des BD 17h10 Thierry Cros Marc-Antoine Scheurer Xavier Bourguignon Olivier Mallassi 17h30 - A6 - - I6 - - J6 - - X6 - Lean engineering iPhone et Agile, l'amour vache Let's make this test suite run faster The feel of Scala 18h30 Jean-Christophe Dubail Guillaume Duquesnay David Gageot Mario Fusco Mot de la n & tombola
  • 3. Optimizing iOS Applications Marc-Antoine Scheurer [email protected] Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 4. Optimizing is... Risky: If it aint broke, dont x it A hardware problem: Buy a faster computer Time consuming: I dont have time for performance work Complicated: I dont know where to start or what to do Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 5. Why? For the user: better experience For you: beat the competition For the OS: watch out the watchdog Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 6. A Hardware Problem: Limited Resources 3G 3GS 4 iPad CPU ARM 11 ARM Cortex A8 A4 (Cortex A8) A4 (Cortex A8) clock 412 MHz 600 MHz 1 GHz 1GHz L1 32 KB 64 KB 64 KB 64 KB L2 - 256 KB 640 KB 640 KB GPU PowerVR MBX Lite PowerVR SGX A4 (PowerVR SGX) A4 (PowerVR SGX) triangles / 0.6 M 5.2 M 28 M ?? 28 M ?? RAM s 128 MB 256 MB 512 MB 256 MB available 40 MB 150 MB 400 MB ? 150 MB Flash 8 - 32 GB 16 - 32 GB 16 - 32 GB 16 - 32 - 64 GB available 2 GB 2 GB 2 GB 2 GB Screen 480x320 480x320 960x640 1024x728 More GPS Compass Gyroscope Battery 6h on WiFi 9h on WiFi 10h on WiFi 10-12h video Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 7. Where to start? Measuring Performance Guessing often does not work Measure - Change - Measure Use measuring tools Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 8. Measuring Tools NSLog Instruments Simulator Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 9. NSLog NSDate *startTime = [NSDate date]; ... NSLog (@"Elapsed time: %.3f", -[startTime timeIntervalSinceNow]); Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 10. Instruments Tool Introduced Objective C 1988 Interface Builder 1988* Xcode 1988 Instruments 2007 * SOS Interface, 1984-1986 (LISP, Mac) Project Builder, renamed Xcode in 2003 Shikari, Shark in 2002 Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 11. Instruments Proling tool CPU Memory CoreAnimation CoreData OpenGL Power etc. Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 12. Simulator Software simulator hardware emulator Simulator 3G i386 ARM 2.5 GHz 400 MHz Unlimited memory 40 MB Measure and test on oldest supported device (3G) Simulator OK to check memory usage Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 13. Better user experience 1. Responsive application 2. No crash (or kill by the watchdog) 3. Save battery life Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 14. 1. Responsive applications Copyright 2010, Sente SA. All rights reserved. http://www.sente.ch
  • 15. Time Faster code makes applications more responsive uses less p

Search related