SlideShare a Scribd company logo
Marc-Antoine Scheurer
2010
i5
Optimizing iOS applications
Agilité iPhone Java Incubateur
8:15 Accueil des participantsAccueil des participantsAccueil des participantsAccueil des participants
8:40 Mot des organisateurs & Criée des orateursMot des organisateurs & Criée des orateursMot des organisateurs & Criée des orateursMot des organisateurs & Criée des orateurs
9:00 Keynote de Nicolas Martignole (30 minutes)Keynote de Nicolas Martignole (30 minutes)Keynote de Nicolas Martignole (30 minutes)Keynote de Nicolas Martignole (30 minutes)
9:40
10:40
- A1 -
Le terrain Agile
Jean-Philippe Vigniel
- I1-
Hello iPhone
Stephane Tavera
- J1 -
NOSQL also means RDF stores: an
Android case study
Fabrizio Giudci
- X1 -
Le développement durable
Dominic Williams
11:00
12:00
- A2 -
Integration of User Centered Design
in Agile Development of RIA
J. Borkenhagen, J. Desmazières
- I2 -
Développement d'une application
iPhone pilotée par les tests
Emmanuel Etasse, Van-Charles Tran
- J2 -
La Tequila du développement Web
Nicolas Martignole
- X2 -
Cloud Computing: anatomie et
pratique
Marc-Elian Bégin
12:20
13:20
- A3 -
Adoption de l'Agilité par les usages
Xavier Warzee
- I3 -
Distribution d'applications iPhone
en Entreprise: Réalisation d'un
AppStore interne
Géraud de Laval
- J3 -
Vaadin - Rich Web Applications in
Server-side Java without Plug-ins or
JavaScript
Joonas Lehtinen
- X3 -
Les DVCS sont vos amis
Sébastien Douche
Pause repas (50 minutes)Pause repas (50 minutes)Pause repas (50 minutes)Pause repas (50 minutes)
14h10 Keynote de Regis Medina (30 minutes)Keynote de Regis Medina (30 minutes)Keynote de Regis Medina (30 minutes)Keynote de Regis Medina (30 minutes)
14h50
15h50
- A4 -
Scrum, introduction et mise en
oeuvre avec iceScrum
Claude Aubry
- I4 -
Agile iOS Development
Jérôme Layat, Alexander Osterwalder
- J4 -
JAX-RS and Java EE 6
Paul Sandoz
- X4 -
IT Design & Ergonomy
Pascal Petit, Aude Lussigny
16h10
17h10
- A5 -
Agilité : 10 ans déjà
Thierry Cros
- I5 -
Optimizing iOS applications
Marc-Antoine Scheurer
- J5 -
Ecrivez et automatisez vos tests
fonctionnels avec jBehave
Xavier Bourguignon
- X5 -
NoSQL : Enfin de la biodiversité
dans l'écosystème des BD
Olivier Mallassi
17h30
18h30
- A6 -
Lean engineering
Jean-Christophe Dubail
- I6 -
iPhone et Agile, l'amour vache
Guillaume Duquesnay
- J6 -
Let's make this test suite run faster
David Gageot
- X6 -
The feel of Scala
Mario Fusco
Mot de la fin & tombolaMot de la fin & tombolaMot de la fin & tombolaMot de la fin & tombola
Programme de la Conférence
www.soft-shake.ch
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Optimizing iOS Applications
Marc-Antoine Scheurer
marco@sente.ch
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Optimizing is...
• Risky:“If it ain’t broke, don’t fix it”
• A hardware problem:“Buy a faster
computer”
• Time consuming:“I don’t have time for
performance work”
• Complicated:“I don’t know where to start
or what to do”
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
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
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
triangles /
s
PowerVR MBX Lite
0.6 M
PowerVR SGX
5.2 M
A4 (PowerVR SGX)
28 M ??
A4 (PowerVR SGX)
28 M ??
RAM 128 MB 256 MB 512 MB 256 MB
available 40 MB 150 MB 400 MB ? 150 MB
Flash
available
8 - 32 GB
2 GB
16 - 32 GB
2 GB
16 - 32 GB
2 GB
16 - 32 - 64 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
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
Measuring Tools
• NSLog
• Instruments
• Simulator
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
NSLog
NSDate *startTime = [NSDate date];
...
	 	
NSLog (@"Elapsed time: %.3f", -[startTime timeIntervalSinceNow]);
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Instruments
Tool Introduced
Objective C 1988
Interface Builder 1988*
Xcode 1988†
Instruments 2007‡
† Project Builder, renamed Xcode in 2003
‡ Shikari, Shark in 2002
* SOS Interface, 1984-1986 (LISP, Mac)
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Instruments
• Profiling tool
• CPU
• Memory
• CoreAnimation
• CoreData
• OpenGL
• Power
• etc.
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
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
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
1. Responsive
applications
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Time
• Faster code
• makes applications more responsive
• uses less power
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Time
• Animation
• Objective C
• C and ARM code generation
• Frameworks
• File system
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Animation
• Demo
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Animation
• Scrolling at 60 fps
• Reuse identifier
• Opaque views
• Reuse formatters
• UINib (4.x)
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Objective C
• Blocks
• IMP caching
	 [array indexesOfObjectsWithOptions:NSEnumerationConcurrent
	 	 	 	 	 	 passingTest:^(id obj, NSUInteger idx, BOOL *stop) {
	 	 	 	 	 	 	 return [obj test:value];
	 	 	 	 	 	 }
	 ]
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
• Demo
Objective C
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
C and ARM
Code Generation
• Demo
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
C and ARM
Code Generation
• ARM v6 (2G, 3G)
• ARM v7 (3GS, 4)
• -Os vs -O3
• Floating points: remove Thumb on v6
• Contiguous memory, shadow variables, etc.
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Frameworks
• Foundation
• Accelerate
• Grand Central Dispatch
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Foundation
• NSMutableArray, NSMutableString
• insert O(N), O(1) at begin and end
• NSMutableDictionary, NSMutableSet
• lookup O(1) with good hash function
• NSMutableIndexSet
• Store integers without NSNumber
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Accelerate
• ARM v6
• Integer unit with 16 registers
• Hardware floating-point (VFP)
• 32 single precision registers
• 16 double precision registers
• ARM v7
• Integer unit with 16 registers
• LegacyVFP support
• NEON: 16 128-bit vector registers
• Single precision floating-point uses NEON
• NEON can decode MP3 on 10MHz CPU
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Accelerate
• Makes usingVFP and NEON easy
• Demo
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Accelerate
• 2000 APIs for hardware accelerated math
• vDSP (Digital Signal Processing)
• Fourier transforms
• BLAS (Basic Linear Algebra Subprograms)
• Matrix product
• LAPACK (Linear algebra)
• Solving system of linear equations
• Later? vImage, vForce, ...
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Grand Central Dispatch
• Concurrent programming
• Multicore or single core
• Easier and lighter than threads
• Use to move long processes off the main
thread
• dispatch_async()
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
• Demo
Grand Central Dispatch
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
File system
• Access to Flash memory is relatively slow
• Speed vary a lot from device to device
• For large files use memory mapped files
+[NSData dataWithContentsOfMappedFile:]
• Long I/O off the main thread
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
File System
• I/O of small amount of data:
• NSUserDefaults
• Property Lists
• NSArchiver
• I/O of large amount of data:
• Incremental formats
• Databases (CoreData)
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Property Lists
• Binary Format 2-3x faster than XML
• Use NSPropertyListSerialization
-[NSArray writeToFile:atomically:]
-[NSDictionary writeToFile:atomically:]
-[NSString writeToFile:atomically:encoding:error:]
NSData *data = [NSPropertyListSerialization dataWithPropertyList:dictionary
format:NSPropertyListBinaryFormat_v1_0
options:0
error:NULL];
[data writeToFile:path atomically:YES];
• Slow:
• Fast:
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
NSArchiver
• Not an incremental file format
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Database
• Use CoreData
• Do not import large
quantity of data...
• Add object stores instead
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Database Search
• Unicode string comparisons are expensive
• Use normalized derived attribute (without
accents)
• Use <= and < instead of BEGINSWITH
• Prefer prefix searching
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Database Search
• Point deVue app: 25’000 records
3G Before After
[[each name] rangeOfString:searchString
options:(NSAnchored| NSCaseInsensitive|
NSDiacriticInsensitiveSearch)].location !=
NSNotFound
[[each asciiName] hasPrefix:searchString ]
“l” 0.704 0.450
“la” 0.032 0.024
“lau” 0.010 0.008
“laus” 0.001 0.001
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
2. No Crash
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Activity Watchdog
Maximum Allowed TimeMaximum Allowed Time
Launch 20 s
Resume 10 s
Suspend 10 s
Quit 6 s
Operation 10 min
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Memory Watchdog
“Jetsam”
• Watches memory pressure
• Issues low memory warning
• Instant termination of application
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Memory
• No swap
• (but yes: virtual memory)
• Memory usage also impacts time
• allocation time,
• unloading of executable code, ...
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Memory Usage
• Avoid
• spikes
• leaks
• abandoned memory
• zombies
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Memory Spikes
• Be smart with autorelease
• Process large quantities of data in batches
• Nested autorelease pools
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
• Demo
Memory Spikes
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Memory Leaks
• Allocated memory that is inaccessible
• Unbalanced retain/release
• Forget to release property’s original value
• Leaks Instrument examines heap for leaked
memory, identify allocation
• Xcode: Build and Analyze
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Abandoned Memory
• Wasted memory
• Accessible but never used
• Memory should not grow without bounds
• Detect with Allocation Instrument:“heap
shots”
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Zombies
• Messages send to deallocated object
• Detect with Zombies template
• or Allocations “Enable zombie detection”
• Simulator only
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
3. Energy
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Energy (iPhone 3G)
• 3G,WiFi, Bluetooth, GPS: 2 W
• CPU + GPU: 800 mW
• Screen: 200 mW
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Radios and sensors
• Network
• CoreLocation
• CoreMotion
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Network
• Bandwidth usage impacts time and power
• Use compact protocols (JSON vs XML)
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
3G
• 3G networks require phones stay in high-
power state for a few seconds after last
packet is sent or received
• Limit number of connections
• Do not poll
• Use compact data formats
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
WiFi & 2G
• Less power than 3G
• 3G > 2G > WiFi
• Allowed to idle immediately
• 2G much slower
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
CPU
• Burst
• Do not poll, use events
• Accelerate: more power, less energy
Power
Time
with NEON
without NEON
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
CoreLocation
• Use minimum required accuracy
GPS kCLLocationAccuracyBest
GPS kCLLocationAccuracyNearestTenMeters
WiFi kCLLocationAccuracyHundredMeters
Cell / WiFi kCLLocationAccuracyKilometer
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
CoreLocation
• distanceFilter
• how often you receive location changed
notifications
• default: all changes, many events, high CPU usage
• stopUpdatingLocation
• when good enough accuracy, switch GPS off.
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
CoreMotion
• Same thing
• Turn sensors off when in background (4.x)
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Energy diagnostics
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Energy usage
• Works on
• 3GS
• 4
• iPod 2 & 3
Level Battery life
20 Less than 1 hour
10 About 10 hours
1 More than 20 hours
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Measure on the go
• Enable device
to collect data
• Import in
Instruments
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Summary
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Instruments’ instruments
CPU
Memory
File System
Core Data
Graphics
Energy
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Instruments Wireless
• Connect device with USB
• Hold alt while choosing target
• Choose wireless device
• Disconnect from USB
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
When?
• All the time
© Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch
Useful links
• Xcode Developer documentation
• Apple
http://developer.apple.com/iphone
http://developer.apple.com/videos/wwdc/2010/
• Developer forums
http://www.iphonedevsdk.com/
http://stackoverflow.com
• Developer classes
Stanford iPhone Application Development (english, free) sur iTunesU
http://deimos3.apple.com/WebObjects/Core.woa/Browse/itunes.stanford.edu.3124430053.03124430055
Sen:te (french, paying)
http://www.iphone-class.com

More Related Content

Viewers also liked

Rat
RatRat
Rat
yethu
 
soft-shake.ch - Hands on Node.js
soft-shake.ch - Hands on Node.jssoft-shake.ch - Hands on Node.js
soft-shake.ch - Hands on Node.js
soft-shake.ch
 
Horror key concepts
Horror key conceptsHorror key concepts
Horror key concepts
Kally Nicole
 
Capital humano
Capital humanoCapital humano
soft-shake.ch - Data grids and Data Caching
soft-shake.ch - Data grids and Data Cachingsoft-shake.ch - Data grids and Data Caching
soft-shake.ch - Data grids and Data Caching
soft-shake.ch
 
soft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coin
soft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coinsoft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coin
soft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coin
soft-shake.ch
 
Introduction to histology
Introduction to histologyIntroduction to histology
Introduction to histology
chanthaj
 
soft-shake.ch - Recettes d’une passion
soft-shake.ch - Recettes d’une passionsoft-shake.ch - Recettes d’une passion
soft-shake.ch - Recettes d’une passion
soft-shake.ch
 
Histology of respiratory system
Histology of respiratory systemHistology of respiratory system
Histology of respiratory system
chanthaj
 

Viewers also liked (9)

Rat
RatRat
Rat
 
soft-shake.ch - Hands on Node.js
soft-shake.ch - Hands on Node.jssoft-shake.ch - Hands on Node.js
soft-shake.ch - Hands on Node.js
 
Horror key concepts
Horror key conceptsHorror key concepts
Horror key concepts
 
Capital humano
Capital humanoCapital humano
Capital humano
 
soft-shake.ch - Data grids and Data Caching
soft-shake.ch - Data grids and Data Cachingsoft-shake.ch - Data grids and Data Caching
soft-shake.ch - Data grids and Data Caching
 
soft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coin
soft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coinsoft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coin
soft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coin
 
Introduction to histology
Introduction to histologyIntroduction to histology
Introduction to histology
 
soft-shake.ch - Recettes d’une passion
soft-shake.ch - Recettes d’une passionsoft-shake.ch - Recettes d’une passion
soft-shake.ch - Recettes d’une passion
 
Histology of respiratory system
Histology of respiratory systemHistology of respiratory system
Histology of respiratory system
 

Similar to soft-shake.ch - Optimizing iOS applications

Microsoft IoT & Data OpenHack Zürich
Microsoft IoT & Data OpenHack ZürichMicrosoft IoT & Data OpenHack Zürich
Microsoft IoT & Data OpenHack Zürich
Sascha Corti
 
OpenStack: Everything You Need To Know to Get Started (ATO2014)
OpenStack: Everything You Need To Know to Get Started (ATO2014)OpenStack: Everything You Need To Know to Get Started (ATO2014)
OpenStack: Everything You Need To Know to Get Started (ATO2014)
Mark Voelker
 
OpenStack: Everything You Need to Know To Get Started
OpenStack: Everything You Need to Know To Get StartedOpenStack: Everything You Need to Know To Get Started
OpenStack: Everything You Need to Know To Get Started
All Things Open
 
SensorStudio introduction (IDC 2016)
SensorStudio introduction (IDC 2016)SensorStudio introduction (IDC 2016)
SensorStudio introduction (IDC 2016)
Herve Blanc
 
Openstack 101
Openstack 101Openstack 101
Openstack 101
Mark Voelker
 
Graphical DSL with Sirius: how to simplify the creation of custom modeling tools
Graphical DSL with Sirius: how to simplify the creation of custom modeling toolsGraphical DSL with Sirius: how to simplify the creation of custom modeling tools
Graphical DSL with Sirius: how to simplify the creation of custom modeling tools
Etienne Juliot
 
OpenStackDay - XIFI Federation
OpenStackDay - XIFI FederationOpenStackDay - XIFI Federation
OpenStackDay - XIFI Federation
Alessandro Martellone
 
Srikanth_PILLI_CV_latest
Srikanth_PILLI_CV_latestSrikanth_PILLI_CV_latest
Srikanth_PILLI_CV_latest
Srikanth Pilli
 
IoTivity: From Devices to the Cloud
IoTivity: From Devices to the CloudIoTivity: From Devices to the Cloud
IoTivity: From Devices to the Cloud
Samsung Open Source Group
 
soft-shake.ch - Vaadin - Rich Web Applications in Server-side Java without Pl...
soft-shake.ch - Vaadin - Rich Web Applications in Server-side Java without Pl...soft-shake.ch - Vaadin - Rich Web Applications in Server-side Java without Pl...
soft-shake.ch - Vaadin - Rich Web Applications in Server-side Java without Pl...
soft-shake.ch
 
Janus Workshop @ ClueCon 2020
Janus Workshop @ ClueCon 2020Janus Workshop @ ClueCon 2020
Janus Workshop @ ClueCon 2020
Lorenzo Miniero
 
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Luciano Resende
 
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OCCIware
 
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OW2
 
Stackato v4
Stackato v4Stackato v4
Stackato v4
Jonas Brømsø
 
KITE Network Instrumentation: Advanced WebRTC Testing
KITE Network Instrumentation: Advanced WebRTC TestingKITE Network Instrumentation: Advanced WebRTC Testing
KITE Network Instrumentation: Advanced WebRTC Testing
Alexandre Gouaillard
 
Building a Real-Time IoT monitoring application with Azure
Building a Real-Time IoT monitoring application with AzureBuilding a Real-Time IoT monitoring application with Azure
Building a Real-Time IoT monitoring application with Azure
Davide Mauri
 
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
 Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e... Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
VMware Tanzu
 
Open source computer vision with TensorFlow, Apache MiniFi, Apache NiFi, Open...
Open source computer vision with TensorFlow, Apache MiniFi, Apache NiFi, Open...Open source computer vision with TensorFlow, Apache MiniFi, Apache NiFi, Open...
Open source computer vision with TensorFlow, Apache MiniFi, Apache NiFi, Open...
DataWorks Summit
 
Cisco Paris DevNet Hackathon slideshow - Intro
Cisco Paris DevNet Hackathon slideshow - IntroCisco Paris DevNet Hackathon slideshow - Intro
Cisco Paris DevNet Hackathon slideshow - Intro
BeMyApp
 

Similar to soft-shake.ch - Optimizing iOS applications (20)

Microsoft IoT & Data OpenHack Zürich
Microsoft IoT & Data OpenHack ZürichMicrosoft IoT & Data OpenHack Zürich
Microsoft IoT & Data OpenHack Zürich
 
OpenStack: Everything You Need To Know to Get Started (ATO2014)
OpenStack: Everything You Need To Know to Get Started (ATO2014)OpenStack: Everything You Need To Know to Get Started (ATO2014)
OpenStack: Everything You Need To Know to Get Started (ATO2014)
 
OpenStack: Everything You Need to Know To Get Started
OpenStack: Everything You Need to Know To Get StartedOpenStack: Everything You Need to Know To Get Started
OpenStack: Everything You Need to Know To Get Started
 
SensorStudio introduction (IDC 2016)
SensorStudio introduction (IDC 2016)SensorStudio introduction (IDC 2016)
SensorStudio introduction (IDC 2016)
 
Openstack 101
Openstack 101Openstack 101
Openstack 101
 
Graphical DSL with Sirius: how to simplify the creation of custom modeling tools
Graphical DSL with Sirius: how to simplify the creation of custom modeling toolsGraphical DSL with Sirius: how to simplify the creation of custom modeling tools
Graphical DSL with Sirius: how to simplify the creation of custom modeling tools
 
OpenStackDay - XIFI Federation
OpenStackDay - XIFI FederationOpenStackDay - XIFI Federation
OpenStackDay - XIFI Federation
 
Srikanth_PILLI_CV_latest
Srikanth_PILLI_CV_latestSrikanth_PILLI_CV_latest
Srikanth_PILLI_CV_latest
 
IoTivity: From Devices to the Cloud
IoTivity: From Devices to the CloudIoTivity: From Devices to the Cloud
IoTivity: From Devices to the Cloud
 
soft-shake.ch - Vaadin - Rich Web Applications in Server-side Java without Pl...
soft-shake.ch - Vaadin - Rich Web Applications in Server-side Java without Pl...soft-shake.ch - Vaadin - Rich Web Applications in Server-side Java without Pl...
soft-shake.ch - Vaadin - Rich Web Applications in Server-side Java without Pl...
 
Janus Workshop @ ClueCon 2020
Janus Workshop @ ClueCon 2020Janus Workshop @ ClueCon 2020
Janus Workshop @ ClueCon 2020
 
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
 
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
 
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
OCCIware, a formal framework for Everything as a Service. OW2con'15, November...
 
Stackato v4
Stackato v4Stackato v4
Stackato v4
 
KITE Network Instrumentation: Advanced WebRTC Testing
KITE Network Instrumentation: Advanced WebRTC TestingKITE Network Instrumentation: Advanced WebRTC Testing
KITE Network Instrumentation: Advanced WebRTC Testing
 
Building a Real-Time IoT monitoring application with Azure
Building a Real-Time IoT monitoring application with AzureBuilding a Real-Time IoT monitoring application with Azure
Building a Real-Time IoT monitoring application with Azure
 
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
 Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e... Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
 
Open source computer vision with TensorFlow, Apache MiniFi, Apache NiFi, Open...
Open source computer vision with TensorFlow, Apache MiniFi, Apache NiFi, Open...Open source computer vision with TensorFlow, Apache MiniFi, Apache NiFi, Open...
Open source computer vision with TensorFlow, Apache MiniFi, Apache NiFi, Open...
 
Cisco Paris DevNet Hackathon slideshow - Intro
Cisco Paris DevNet Hackathon slideshow - IntroCisco Paris DevNet Hackathon slideshow - Intro
Cisco Paris DevNet Hackathon slideshow - Intro
 

More from soft-shake.ch

soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?
soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?
soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?
soft-shake.ch
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
soft-shake.ch
 
soft-shake.ch - WebMatrix: Your Web Made Easy
soft-shake.ch - WebMatrix: Your Web Made Easysoft-shake.ch - WebMatrix: Your Web Made Easy
soft-shake.ch - WebMatrix: Your Web Made Easy
soft-shake.ch
 
soft-shake.ch - Domotique et robotique avec le micro Framework .NET
soft-shake.ch - Domotique et robotique avec le micro Framework .NETsoft-shake.ch - Domotique et robotique avec le micro Framework .NET
soft-shake.ch - Domotique et robotique avec le micro Framework .NET
soft-shake.ch
 
soft-shake.ch - Clojure Values
soft-shake.ch - Clojure Valuessoft-shake.ch - Clojure Values
soft-shake.ch - Clojure Values
soft-shake.ch
 
soft-shake.ch - Data grids and Data Grids
soft-shake.ch - Data grids and Data Gridssoft-shake.ch - Data grids and Data Grids
soft-shake.ch - Data grids and Data Grids
soft-shake.ch
 
soft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch - JBoss AS 7, la révolutionsoft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch
 
soft-shake.ch - Tests d'intégration JavaEE avec Arquillian
soft-shake.ch - Tests d'intégration JavaEE avec Arquilliansoft-shake.ch - Tests d'intégration JavaEE avec Arquillian
soft-shake.ch - Tests d'intégration JavaEE avec Arquillian
soft-shake.ch
 
soft-shake.ch - Un zeste d’Erlang dans le shaker!
soft-shake.ch - Un zeste d’Erlang dans le shaker!soft-shake.ch - Un zeste d’Erlang dans le shaker!
soft-shake.ch - Un zeste d’Erlang dans le shaker!
soft-shake.ch
 
soft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch - Déploiement continu sur le cloud avec SlipStreamsoft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch
 
soft-shake.ch - An introduction to social architecture
soft-shake.ch - An introduction to social architecturesoft-shake.ch - An introduction to social architecture
soft-shake.ch - An introduction to social architecture
soft-shake.ch
 
soft-shake.ch - De Hermes RUP à Hermes Scrum
soft-shake.ch - De Hermes RUP à Hermes Scrumsoft-shake.ch - De Hermes RUP à Hermes Scrum
soft-shake.ch - De Hermes RUP à Hermes Scrum
soft-shake.ch
 
soft-shake.ch - Stewardship et motivation
soft-shake.ch - Stewardship et motivationsoft-shake.ch - Stewardship et motivation
soft-shake.ch - Stewardship et motivation
soft-shake.ch
 
soft-shake.ch - Agile qu'es aco : scrum xp lean
soft-shake.ch - Agile qu'es aco : scrum xp leansoft-shake.ch - Agile qu'es aco : scrum xp lean
soft-shake.ch - Agile qu'es aco : scrum xp lean
soft-shake.ch
 
soft-shake.ch - Documentation et agilité
soft-shake.ch - Documentation et agilitésoft-shake.ch - Documentation et agilité
soft-shake.ch - Documentation et agilité
soft-shake.ch
 
soft-shake.ch - Agilité = discipline et rigueur ?
soft-shake.ch - Agilité = discipline et rigueur ?soft-shake.ch - Agilité = discipline et rigueur ?
soft-shake.ch - Agilité = discipline et rigueur ?
soft-shake.ch
 
soft-shake.ch - Transition agile & Accompagnement au changement
soft-shake.ch - Transition agile & Accompagnement au changementsoft-shake.ch - Transition agile & Accompagnement au changement
soft-shake.ch - Transition agile & Accompagnement au changement
soft-shake.ch
 
soft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structurée
soft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structuréesoft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structurée
soft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structurée
soft-shake.ch
 
soft-shake.ch - Le développement durable
soft-shake.ch - Le développement durablesoft-shake.ch - Le développement durable
soft-shake.ch - Le développement durable
soft-shake.ch
 
soft-shake.ch - The feel of Scala
soft-shake.ch - The feel of Scalasoft-shake.ch - The feel of Scala
soft-shake.ch - The feel of Scala
soft-shake.ch
 

More from soft-shake.ch (20)

soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?
soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?
soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
 
soft-shake.ch - WebMatrix: Your Web Made Easy
soft-shake.ch - WebMatrix: Your Web Made Easysoft-shake.ch - WebMatrix: Your Web Made Easy
soft-shake.ch - WebMatrix: Your Web Made Easy
 
soft-shake.ch - Domotique et robotique avec le micro Framework .NET
soft-shake.ch - Domotique et robotique avec le micro Framework .NETsoft-shake.ch - Domotique et robotique avec le micro Framework .NET
soft-shake.ch - Domotique et robotique avec le micro Framework .NET
 
soft-shake.ch - Clojure Values
soft-shake.ch - Clojure Valuessoft-shake.ch - Clojure Values
soft-shake.ch - Clojure Values
 
soft-shake.ch - Data grids and Data Grids
soft-shake.ch - Data grids and Data Gridssoft-shake.ch - Data grids and Data Grids
soft-shake.ch - Data grids and Data Grids
 
soft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch - JBoss AS 7, la révolutionsoft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch - JBoss AS 7, la révolution
 
soft-shake.ch - Tests d'intégration JavaEE avec Arquillian
soft-shake.ch - Tests d'intégration JavaEE avec Arquilliansoft-shake.ch - Tests d'intégration JavaEE avec Arquillian
soft-shake.ch - Tests d'intégration JavaEE avec Arquillian
 
soft-shake.ch - Un zeste d’Erlang dans le shaker!
soft-shake.ch - Un zeste d’Erlang dans le shaker!soft-shake.ch - Un zeste d’Erlang dans le shaker!
soft-shake.ch - Un zeste d’Erlang dans le shaker!
 
soft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch - Déploiement continu sur le cloud avec SlipStreamsoft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch - Déploiement continu sur le cloud avec SlipStream
 
soft-shake.ch - An introduction to social architecture
soft-shake.ch - An introduction to social architecturesoft-shake.ch - An introduction to social architecture
soft-shake.ch - An introduction to social architecture
 
soft-shake.ch - De Hermes RUP à Hermes Scrum
soft-shake.ch - De Hermes RUP à Hermes Scrumsoft-shake.ch - De Hermes RUP à Hermes Scrum
soft-shake.ch - De Hermes RUP à Hermes Scrum
 
soft-shake.ch - Stewardship et motivation
soft-shake.ch - Stewardship et motivationsoft-shake.ch - Stewardship et motivation
soft-shake.ch - Stewardship et motivation
 
soft-shake.ch - Agile qu'es aco : scrum xp lean
soft-shake.ch - Agile qu'es aco : scrum xp leansoft-shake.ch - Agile qu'es aco : scrum xp lean
soft-shake.ch - Agile qu'es aco : scrum xp lean
 
soft-shake.ch - Documentation et agilité
soft-shake.ch - Documentation et agilitésoft-shake.ch - Documentation et agilité
soft-shake.ch - Documentation et agilité
 
soft-shake.ch - Agilité = discipline et rigueur ?
soft-shake.ch - Agilité = discipline et rigueur ?soft-shake.ch - Agilité = discipline et rigueur ?
soft-shake.ch - Agilité = discipline et rigueur ?
 
soft-shake.ch - Transition agile & Accompagnement au changement
soft-shake.ch - Transition agile & Accompagnement au changementsoft-shake.ch - Transition agile & Accompagnement au changement
soft-shake.ch - Transition agile & Accompagnement au changement
 
soft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structurée
soft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structuréesoft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structurée
soft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structurée
 
soft-shake.ch - Le développement durable
soft-shake.ch - Le développement durablesoft-shake.ch - Le développement durable
soft-shake.ch - Le développement durable
 
soft-shake.ch - The feel of Scala
soft-shake.ch - The feel of Scalasoft-shake.ch - The feel of Scala
soft-shake.ch - The feel of Scala
 

Recently uploaded

Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
UiPathCommunity
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
zjhamm304
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
Fwdays
 
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Ukraine
 
Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!
Tobias Schneck
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
DianaGray10
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
BibashShahi
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
Ortus Solutions, Corp
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
AlexanderRichford
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
Sease
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Neo4j
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
DanBrown980551
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 

Recently uploaded (20)

Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
 
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
 
Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 

soft-shake.ch - Optimizing iOS applications

  • 2. Agilité iPhone Java Incubateur 8:15 Accueil des participantsAccueil des participantsAccueil des participantsAccueil des participants 8:40 Mot des organisateurs & Criée des orateursMot des organisateurs & Criée des orateursMot des organisateurs & Criée des orateursMot des organisateurs & Criée des orateurs 9:00 Keynote de Nicolas Martignole (30 minutes)Keynote de Nicolas Martignole (30 minutes)Keynote de Nicolas Martignole (30 minutes)Keynote de Nicolas Martignole (30 minutes) 9:40 10:40 - A1 - Le terrain Agile Jean-Philippe Vigniel - I1- Hello iPhone Stephane Tavera - J1 - NOSQL also means RDF stores: an Android case study Fabrizio Giudci - X1 - Le développement durable Dominic Williams 11:00 12:00 - A2 - Integration of User Centered Design in Agile Development of RIA J. Borkenhagen, J. Desmazières - I2 - Développement d'une application iPhone pilotée par les tests Emmanuel Etasse, Van-Charles Tran - J2 - La Tequila du développement Web Nicolas Martignole - X2 - Cloud Computing: anatomie et pratique Marc-Elian Bégin 12:20 13:20 - A3 - Adoption de l'Agilité par les usages Xavier Warzee - I3 - Distribution d'applications iPhone en Entreprise: Réalisation d'un AppStore interne Géraud de Laval - J3 - Vaadin - Rich Web Applications in Server-side Java without Plug-ins or JavaScript Joonas Lehtinen - X3 - Les DVCS sont vos amis Sébastien Douche Pause repas (50 minutes)Pause repas (50 minutes)Pause repas (50 minutes)Pause repas (50 minutes) 14h10 Keynote de Regis Medina (30 minutes)Keynote de Regis Medina (30 minutes)Keynote de Regis Medina (30 minutes)Keynote de Regis Medina (30 minutes) 14h50 15h50 - A4 - Scrum, introduction et mise en oeuvre avec iceScrum Claude Aubry - I4 - Agile iOS Development Jérôme Layat, Alexander Osterwalder - J4 - JAX-RS and Java EE 6 Paul Sandoz - X4 - IT Design & Ergonomy Pascal Petit, Aude Lussigny 16h10 17h10 - A5 - Agilité : 10 ans déjà Thierry Cros - I5 - Optimizing iOS applications Marc-Antoine Scheurer - J5 - Ecrivez et automatisez vos tests fonctionnels avec jBehave Xavier Bourguignon - X5 - NoSQL : Enfin de la biodiversité dans l'écosystème des BD Olivier Mallassi 17h30 18h30 - A6 - Lean engineering Jean-Christophe Dubail - I6 - iPhone et Agile, l'amour vache Guillaume Duquesnay - J6 - Let's make this test suite run faster David Gageot - X6 - The feel of Scala Mario Fusco Mot de la fin & tombolaMot de la fin & tombolaMot de la fin & tombolaMot de la fin & tombola Programme de la Conférence www.soft-shake.ch
  • 3. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Optimizing iOS Applications Marc-Antoine Scheurer marco@sente.ch
  • 4. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Optimizing is... • Risky:“If it ain’t broke, don’t fix it” • A hardware problem:“Buy a faster computer” • Time consuming:“I don’t have time for performance work” • Complicated:“I don’t know where to start or what to do”
  • 5. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Why? • For the user: better experience • For you: beat the competition • For the OS: watch out the watchdog
  • 6. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch 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 triangles / s PowerVR MBX Lite 0.6 M PowerVR SGX 5.2 M A4 (PowerVR SGX) 28 M ?? A4 (PowerVR SGX) 28 M ?? RAM 128 MB 256 MB 512 MB 256 MB available 40 MB 150 MB 400 MB ? 150 MB Flash available 8 - 32 GB 2 GB 16 - 32 GB 2 GB 16 - 32 GB 2 GB 16 - 32 - 64 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
  • 7. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Where to start? Measuring Performance • Guessing often does not work • Measure - Change - Measure • Use measuring tools
  • 8. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Measuring Tools • NSLog • Instruments • Simulator
  • 9. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch NSLog NSDate *startTime = [NSDate date]; ... NSLog (@"Elapsed time: %.3f", -[startTime timeIntervalSinceNow]);
  • 10. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Instruments Tool Introduced Objective C 1988 Interface Builder 1988* Xcode 1988† Instruments 2007‡ † Project Builder, renamed Xcode in 2003 ‡ Shikari, Shark in 2002 * SOS Interface, 1984-1986 (LISP, Mac)
  • 11. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Instruments • Profiling tool • CPU • Memory • CoreAnimation • CoreData • OpenGL • Power • etc.
  • 12. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch 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
  • 13. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Better user experience 1. Responsive application 2. No crash (or kill by the watchdog) 3. Save battery life
  • 14. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch 1. Responsive applications
  • 15. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Time • Faster code • makes applications more responsive • uses less power
  • 16. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Time • Animation • Objective C • C and ARM code generation • Frameworks • File system
  • 17. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Animation • Demo
  • 18. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Animation • Scrolling at 60 fps • Reuse identifier • Opaque views • Reuse formatters • UINib (4.x)
  • 19. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Objective C • Blocks • IMP caching [array indexesOfObjectsWithOptions:NSEnumerationConcurrent passingTest:^(id obj, NSUInteger idx, BOOL *stop) { return [obj test:value]; } ]
  • 20. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch • Demo Objective C
  • 21. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch C and ARM Code Generation • Demo
  • 22. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch C and ARM Code Generation • ARM v6 (2G, 3G) • ARM v7 (3GS, 4) • -Os vs -O3 • Floating points: remove Thumb on v6 • Contiguous memory, shadow variables, etc.
  • 23. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Frameworks • Foundation • Accelerate • Grand Central Dispatch
  • 24. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Foundation • NSMutableArray, NSMutableString • insert O(N), O(1) at begin and end • NSMutableDictionary, NSMutableSet • lookup O(1) with good hash function • NSMutableIndexSet • Store integers without NSNumber
  • 25. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Accelerate • ARM v6 • Integer unit with 16 registers • Hardware floating-point (VFP) • 32 single precision registers • 16 double precision registers • ARM v7 • Integer unit with 16 registers • LegacyVFP support • NEON: 16 128-bit vector registers • Single precision floating-point uses NEON • NEON can decode MP3 on 10MHz CPU
  • 26. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Accelerate • Makes usingVFP and NEON easy • Demo
  • 27. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Accelerate • 2000 APIs for hardware accelerated math • vDSP (Digital Signal Processing) • Fourier transforms • BLAS (Basic Linear Algebra Subprograms) • Matrix product • LAPACK (Linear algebra) • Solving system of linear equations • Later? vImage, vForce, ...
  • 28. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Grand Central Dispatch • Concurrent programming • Multicore or single core • Easier and lighter than threads • Use to move long processes off the main thread • dispatch_async()
  • 29. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch • Demo Grand Central Dispatch
  • 30. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch File system • Access to Flash memory is relatively slow • Speed vary a lot from device to device • For large files use memory mapped files +[NSData dataWithContentsOfMappedFile:] • Long I/O off the main thread
  • 31. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch File System • I/O of small amount of data: • NSUserDefaults • Property Lists • NSArchiver • I/O of large amount of data: • Incremental formats • Databases (CoreData)
  • 32. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Property Lists • Binary Format 2-3x faster than XML • Use NSPropertyListSerialization -[NSArray writeToFile:atomically:] -[NSDictionary writeToFile:atomically:] -[NSString writeToFile:atomically:encoding:error:] NSData *data = [NSPropertyListSerialization dataWithPropertyList:dictionary format:NSPropertyListBinaryFormat_v1_0 options:0 error:NULL]; [data writeToFile:path atomically:YES]; • Slow: • Fast:
  • 33. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch NSArchiver • Not an incremental file format
  • 34. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Database • Use CoreData • Do not import large quantity of data... • Add object stores instead
  • 35. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Database Search • Unicode string comparisons are expensive • Use normalized derived attribute (without accents) • Use <= and < instead of BEGINSWITH • Prefer prefix searching
  • 36. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Database Search • Point deVue app: 25’000 records 3G Before After [[each name] rangeOfString:searchString options:(NSAnchored| NSCaseInsensitive| NSDiacriticInsensitiveSearch)].location != NSNotFound [[each asciiName] hasPrefix:searchString ] “l” 0.704 0.450 “la” 0.032 0.024 “lau” 0.010 0.008 “laus” 0.001 0.001
  • 37. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch 2. No Crash
  • 38. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Activity Watchdog Maximum Allowed TimeMaximum Allowed Time Launch 20 s Resume 10 s Suspend 10 s Quit 6 s Operation 10 min
  • 39. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Memory Watchdog “Jetsam” • Watches memory pressure • Issues low memory warning • Instant termination of application
  • 40. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Memory • No swap • (but yes: virtual memory) • Memory usage also impacts time • allocation time, • unloading of executable code, ...
  • 41. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Memory Usage • Avoid • spikes • leaks • abandoned memory • zombies
  • 42. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Memory Spikes • Be smart with autorelease • Process large quantities of data in batches • Nested autorelease pools
  • 43. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch • Demo Memory Spikes
  • 44. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Memory Leaks • Allocated memory that is inaccessible • Unbalanced retain/release • Forget to release property’s original value • Leaks Instrument examines heap for leaked memory, identify allocation • Xcode: Build and Analyze
  • 45. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Abandoned Memory • Wasted memory • Accessible but never used • Memory should not grow without bounds • Detect with Allocation Instrument:“heap shots”
  • 46. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Zombies • Messages send to deallocated object • Detect with Zombies template • or Allocations “Enable zombie detection” • Simulator only
  • 47. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch 3. Energy
  • 48. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Energy (iPhone 3G) • 3G,WiFi, Bluetooth, GPS: 2 W • CPU + GPU: 800 mW • Screen: 200 mW
  • 49. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Radios and sensors • Network • CoreLocation • CoreMotion
  • 50. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Network • Bandwidth usage impacts time and power • Use compact protocols (JSON vs XML)
  • 51. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch 3G • 3G networks require phones stay in high- power state for a few seconds after last packet is sent or received • Limit number of connections • Do not poll • Use compact data formats
  • 52. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch WiFi & 2G • Less power than 3G • 3G > 2G > WiFi • Allowed to idle immediately • 2G much slower
  • 53. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch CPU • Burst • Do not poll, use events • Accelerate: more power, less energy Power Time with NEON without NEON
  • 54. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch CoreLocation • Use minimum required accuracy GPS kCLLocationAccuracyBest GPS kCLLocationAccuracyNearestTenMeters WiFi kCLLocationAccuracyHundredMeters Cell / WiFi kCLLocationAccuracyKilometer
  • 55. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch CoreLocation • distanceFilter • how often you receive location changed notifications • default: all changes, many events, high CPU usage • stopUpdatingLocation • when good enough accuracy, switch GPS off.
  • 56. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch CoreMotion • Same thing • Turn sensors off when in background (4.x)
  • 57. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Energy diagnostics
  • 58. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Energy usage • Works on • 3GS • 4 • iPod 2 & 3 Level Battery life 20 Less than 1 hour 10 About 10 hours 1 More than 20 hours
  • 59. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Measure on the go • Enable device to collect data • Import in Instruments
  • 60. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Summary
  • 61. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Instruments’ instruments CPU Memory File System Core Data Graphics Energy
  • 62. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Instruments Wireless • Connect device with USB • Hold alt while choosing target • Choose wireless device • Disconnect from USB
  • 63. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch When? • All the time
  • 64. © Copyright 2010, Sente SA.All rights reserved. http://www.sente.ch Useful links • Xcode Developer documentation • Apple http://developer.apple.com/iphone http://developer.apple.com/videos/wwdc/2010/ • Developer forums http://www.iphonedevsdk.com/ http://stackoverflow.com • Developer classes Stanford iPhone Application Development (english, free) sur iTunesU http://deimos3.apple.com/WebObjects/Core.woa/Browse/itunes.stanford.edu.3124430053.03124430055 Sen:te (french, paying) http://www.iphone-class.com