Вы находитесь на странице: 1из 17

Device Side Performance Optimization of Mobile Apps

July 8, 2011

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Agenda


Device side performance challenges for mobile applications Why performance analysis? Performance analysis approach Planning performance analysis of mobile apps Optimization techniques for better performance Real-world examples

    

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Device-side Performance Challenges for Mobile Applications

      

Diversity in handsets Difference in the screen size Variations in battery life and memory 3G Option/ Wi-Fi Capabilities Touch, Multi-touch Different types of processors and hardware Device features, such as GPS, Camera, etc. Application development methodology

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Importance of Performance Analysis

Saves Battery Life

Faster Time to Market

Application Stability

Limited Code Change

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Performance Factors

Memory info

Process info

Device info

Battery info Performance Analysis Task info

Service info Debug info PU info

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Options for Performance Analysis




Using extensive debugging tools


   

Traceview & Eclipse memory analyzer & DDMS for Android J2ME profiler for Java phones JDE memory analyzer for BlackBerry Instruments for iPhone

 

Usage of small stubs Automated scripts

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Performance Analysis Approach

Instrument the device Capturing performance parameters on device Extracting, collating & analyzing Reporting performance bottlenecks

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Optimization Techniques



UI independent layouts and design


Addresses challenges created by diversity in handsets, difference in device screen sizes & Touch/Multi-touch feature Developing no-porting/less-porting build to reduce binary size


 

Proper usage of MVC framework


Address Application Development Methodology issues Endorses platform independent design for applications

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Optimization Techniques

   

Optimized communication
Resolves issues caused by 3G and Device Wi-Fi capabilities Connect to server using push-based notifications Implementing objects and data caching mechanisms Using scaled-down protocols and minimum functionalities




Auto selection of most preferred mode


Design considerations of available network options

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Optimization Techniques

 

Memory management with the help of weak references


Helps application development methodology Using weak reference to manage device memory


 

Lazy loading of resources


Addresses problem created by diverse processors and hardware Enhanced turn around time




Worker thread implementation


Business Logic operations can be implemented on worker thread

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Real-world Experience



The Client
A leading financial services provider


  

Key Challenges
Application not usable after some time Application screens are taking time to load Extra usage of memory in certain events




Impetus Solution
Wrote small stubs in the application to identify performance bottlenecks
  

Reinvent the image processing algorithm to reduce CPU cycles Usage of multi threaded approach

Analyze memory usage and resolve memory leaks from the system

Benefits Realised
Tremendous increase in applications performance and life Enhanced application consumes lesser memory vis- a-vis prev version

Real-world Experience


The Client


A leading Media broadcast service provider company

Key Challenges
  

Playing smooth audio-video together without interruption Various network protocol usage Enhance battery life so as to play video for 3-4


  

Impetus Solution
Customized data source implementation Implemented RTSP, RTP, RTCP protocols with device threading support Event queue to process media streams

Benefits Realised
Enhanced battery life Audio/Video synchronization maintained and better quality delivered

Driven by..
Impetus Mobile Maturity Model

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

To Summarize..
 

Application should not adversely affect device CPU and memory Performance analysis to be based on CPU, memory, service, debug and process info parameters Small stubs can be used to identify problem area of your app Optimization techniques can be incorporated where required Right designed application will always get desired performance

  

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Impetus Technologies

We offer innovative product engineering and technology R&D services

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Questions

Please send in your questions using the chat panel

Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Thank you
Mail us at inquiry@impetus.com or visit www.impetus.com
Recorded version available at http://www.impetus.com/webinar_registration?event=archived&eid=44

Вам также может понравиться