SlideShare a Scribd company logo
Moving Metrics with Better
Mobile Images
Ryan Cooke

Tech Lead, Pinterest
2
• 35BillionImagesServedDaily
• 200+MillionMAU
• ~12A/BTests
© Copyright, All Rights Reserved, Pinterest Inc. 2017
Mobile Image Loading - Intro
5
WhyIsItDifficult?
• Usersdon’thaveimagesontheirphone
• Data
• NetworkQuality
• LoadTime
• DifferentScreenSizesandResolutions
• VariableandLimitedMemory
• Easilycauseframelostinscrolling
MobileImageLoading-Intro
Mobile Image Loading - Intro
6
WhatShouldEveryAppDo?
• Backgroundfetchingandprocessing
• Resizing
• Caching
• Placeholder
What’sthebestwaytodothis?
• ThirdPartyLibrary
• Android:Glide,Fresco,Picasso
• iOS:PinRemoteImage
MobileImageLoading-Intro
What do we want to do better?
7
LessMemoryUsage
• LessCrashes
• SmootherScrolling
LessWaitTime
• RegressionTests
• NimbleDroid
• Waittimelogging
BetterQuality
Whatdowewanttodobetter?
Prefetch
8
Prefetchgridimages
• Graballimageswecan
• Cancelunneededrequests
Results
• 4%morepinimpressions*
• IncreaseinDAU
• Generalengagementimprovements
• 10%moreOOMcrashes
PrefetchNo Prefetch
Prefetch
Prefetch
9
Justnextimages
• Insteadofgrabbingtheentirepageofimages
justprefetchthenextfewimages
Results
• 1%increaseinrepinsandgeneralengagement
• 10%lessOOMcrashes
Prefetch
Prefetch
10
DirectionalPrefetch
• Prefetchwhenscrollingupaswellasdown
Results
• Flatmetrics
Prefetch
Prefetch
11
WarmHTTPConnection
• Makearequesttotheimageserverasap
Results
• Small,butunambiguousengagementwins
• Biggerinlownetworkqualityregions
Prefetch
Prefetch
12
PrefetchHomefeed
• Grabthehomefeedwhentheappisn’tbeing
used
• Nottimesensitivedata
• Thinkaboutnetwork
• Thinkaboutchargestatus
Results
• 1%morepinimpressions
• 2%more“Browser”users
Prefetch
Less Memory
13
BitmapConfiguration
• BitmapConfiguration
• ARGB_8888
• RGB_565
• OlderDevices(API<21)
• ~15%ofandroidusers
ARGB_8888 RGB_565
Results
• Crashesdown25%
• Repinsup1%
• VolumeMetricsup1-2%
• BrazilVolumeMetricsup4-5%
LessMemory
Less Memory
14
DisableMemoryCache
• Onlywhenappisalmostoutofmemory
• Clear&Disable
• Re-enablewhenappisnolongercriticalon
memory
Results
• LessCrashes
• 1%dropinmostengagementmetrics
LessMemory
Less Memory
15
LowerImageQualitybased
onNetwork
• FacebookConnectionClass
• Measurebandwidthbasedonimages
• 3qualitylevels
Results
• 2%lesscrashes
• Tinydecreaseinengagement
LessMemory
Quality
16
SmartFetching
• Imagesservedtomatchresolutiondisplayed
• Predefinedbuckets
• Donotrefetchifresolutionchanges
• Networkawarenessalsoincluded
Results
• 3%morerepins
• Overalllotsmoreengagementspecially
interactingwiththeimage
• LotsmoreOOM
SMBC-comics.com
Quality
Quality
17
Differentthresholdsfor
loweringquality
• Twogroups
• Onlylowerqualityonverypoornetwork
• Lowerqualityonallnon-amazingnetworks
Results
• Reducedqualityimprovedperformance
• Noengagementgains
• Networknotahugefactorinearlierimprovements
• Keptcontrol
Quality
Quality
18
Webp
• Smallerimageswithoutqualityloss
• Shouldn’timprovememory
Results
• PerformanceLoss
•NeverShipped
Quality
Quality
19
ProgressiveJpeg
• Imagesloadinlayers
• DisabledoniOS
Results
• DelayedEffect
• Someengagementeffect
• lowqualitynetworkregions
Quality
• Getthebasicsright
• ServetherightsizeImage
• Prefetch
• ProgressiveJpeg
TakeAways
Questions
ryancooke@pinterest.com
https://twitter.com/the__Ryanator
We’re Hiring
© Copyright, All Rights Reserved, Pinterest Inc. 2017

More Related Content

Similar to Moving Metrics with Better Mobile Images

Leveraging Technology
Leveraging TechnologyLeveraging Technology
Leveraging Technology
Jessica Levin
 
responsive awareness
responsive awarenessresponsive awareness
responsive awareness
onehundred_be
 

Similar to Moving Metrics with Better Mobile Images (20)

[Public] between two worlds native&no-native experiences
[Public] between two worlds  native&no-native experiences[Public] between two worlds  native&no-native experiences
[Public] between two worlds native&no-native experiences
 
Mobile Technology for Arts Marketing
Mobile Technology for Arts MarketingMobile Technology for Arts Marketing
Mobile Technology for Arts Marketing
 
Leveraging Technology
Leveraging TechnologyLeveraging Technology
Leveraging Technology
 
Look ma! no hands!
Look ma! no hands!Look ma! no hands!
Look ma! no hands!
 
Delivering on the Promise or AI for content.pptx
Delivering on the Promise or AI for content.pptxDelivering on the Promise or AI for content.pptx
Delivering on the Promise or AI for content.pptx
 
In Loco - AWS Startup Day São Paulo
In Loco - AWS Startup Day São PauloIn Loco - AWS Startup Day São Paulo
In Loco - AWS Startup Day São Paulo
 
5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season
5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season
5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season
 
Chrome Dev Summit Summary 2013 part 1 - what’s hot ?
Chrome Dev Summit Summary 2013 part 1 - what’s hot ?Chrome Dev Summit Summary 2013 part 1 - what’s hot ?
Chrome Dev Summit Summary 2013 part 1 - what’s hot ?
 
[Public] 7 archetipi della tecnologia moderna [italy]
[Public] 7 archetipi della tecnologia moderna [italy][Public] 7 archetipi della tecnologia moderna [italy]
[Public] 7 archetipi della tecnologia moderna [italy]
 
Funddy
FunddyFunddy
Funddy
 
responsive awareness
responsive awarenessresponsive awareness
responsive awareness
 
iOS 图片浏览器 DIY
iOS 图片浏览器 DIYiOS 图片浏览器 DIY
iOS 图片浏览器 DIY
 
ProtoTech Solutions corporate profile
ProtoTech Solutions corporate profileProtoTech Solutions corporate profile
ProtoTech Solutions corporate profile
 
Adaptive Designs Across Devices [UXIM 2015]
Adaptive Designs Across Devices [UXIM 2015]Adaptive Designs Across Devices [UXIM 2015]
Adaptive Designs Across Devices [UXIM 2015]
 
Beyond Responsive [ConvergeSE 2015]
Beyond Responsive [ConvergeSE 2015]Beyond Responsive [ConvergeSE 2015]
Beyond Responsive [ConvergeSE 2015]
 
Android Bazaar and Conference 2011 Winter
Android Bazaar and Conference 2011 WinterAndroid Bazaar and Conference 2011 Winter
Android Bazaar and Conference 2011 Winter
 
Building Native Apps With Titanium Mobile
Building Native Apps With Titanium MobileBuilding Native Apps With Titanium Mobile
Building Native Apps With Titanium Mobile
 
Computer Vision Meetup March: How we built snapscreen
Computer Vision Meetup March: How we built snapscreenComputer Vision Meetup March: How we built snapscreen
Computer Vision Meetup March: How we built snapscreen
 
Evolution of software projects
Evolution of software projectsEvolution of software projects
Evolution of software projects
 
RootandLeaves.pptx
RootandLeaves.pptxRootandLeaves.pptx
RootandLeaves.pptx
 

More from Cloudinary

More from Cloudinary (15)

Imagecon 2019 - Jon Sneyers
Imagecon 2019 - Jon Sneyers Imagecon 2019 - Jon Sneyers
Imagecon 2019 - Jon Sneyers
 
Imagecon 2019 - Jen Looper
Imagecon 2019 - Jen LooperImagecon 2019 - Jen Looper
Imagecon 2019 - Jen Looper
 
Imagecon 2019 - Aaron Gustafson
Imagecon 2019 - Aaron GustafsonImagecon 2019 - Aaron Gustafson
Imagecon 2019 - Aaron Gustafson
 
Imagecon 2019 - Amy Balliett
Imagecon 2019 - Amy BalliettImagecon 2019 - Amy Balliett
Imagecon 2019 - Amy Balliett
 
Imagecon Itai
Imagecon ItaiImagecon Itai
Imagecon Itai
 
ImageCon CTO keynote
ImageCon CTO keynoteImageCon CTO keynote
ImageCon CTO keynote
 
ImageCon keynote product
ImageCon keynote productImageCon keynote product
ImageCon keynote product
 
Drawing a Circle Three Ways: Generating Graphics for the Web
Drawing a Circle Three Ways: Generating Graphics for the WebDrawing a Circle Three Ways: Generating Graphics for the Web
Drawing a Circle Three Ways: Generating Graphics for the Web
 
Images For Everyone
Images For EveryoneImages For Everyone
Images For Everyone
 
Beyond Resizing: The Image Performance Checklist
Beyond Resizing: The Image Performance ChecklistBeyond Resizing: The Image Performance Checklist
Beyond Resizing: The Image Performance Checklist
 
Images in the Era of the Algorithm
Images in the Era of the AlgorithmImages in the Era of the Algorithm
Images in the Era of the Algorithm
 
Media Processing Workflows using AWS Step Functions and Machine Learning on A...
Media Processing Workflows using AWS Step Functions and Machine Learning on A...Media Processing Workflows using AWS Step Functions and Machine Learning on A...
Media Processing Workflows using AWS Step Functions and Machine Learning on A...
 
The Physics of Fast Image Compression
The Physics of Fast Image CompressionThe Physics of Fast Image Compression
The Physics of Fast Image Compression
 
Delivering Responsive Images
Delivering Responsive Images Delivering Responsive Images
Delivering Responsive Images
 
Measuring Image Performance
Measuring Image PerformanceMeasuring Image Performance
Measuring Image Performance
 

Recently uploaded

Recently uploaded (20)

Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 

Moving Metrics with Better Mobile Images