Profile

Cover photo
Colt McAnlis
Works at Google
Attended Texas Christian University
14,393 followers|3,526,482 views
AboutPostsPhotosYouTubeReviews

Stream

Colt McAnlis
moderator

Discussion  - 
 
I like that CloudMagic used LRUCache to fix the OOMs coming from their bitmaps
They also did a great job down-sampling the size of their images, which I also endorse ;)

#perfmatters
CloudMagic is an award winning email app for iPhone, iPad and Android.
15
5
김현준's profile photoFederico Monaco's profile photoVladimir Bjelakovic's profile photoKeith Miller's profile photo
 
I kind of want to stop reading here:

This “universal layout” was complex but by using techniques like ViewHolder pattern and View recycling we made sure that the list behaved itself even while holding as much as 500 results

This doesn't make sense at all! At the point they're talking about it doesn't matter anymore how many item that are not displayed at once there are. Also getItemViewType() as a pro tip!

IMO this blog post doesn't help! And an LRU cache based on number of images could be worse then none of it ends up fragmenting the heap!
Add a comment...

Colt McAnlis
moderator

Discussion  - 
 
The most efficient way to resize bitmaps on Android
I put together a detailed SO post that lists out the three main ways to resize your bitmaps, and talks about the memory tradeoffs between them.

#perfmatters  
50
7
Vasili Chyrvon's profile photoroger alien's profile photo
Add a comment...

Colt McAnlis

Shared publicly  - 
 
True Story : That mustache was real. I grew it out over 4 weeks before the filming.*






*Not a true story.
 
The Big Android BBQ (http://goo.gl/AKWeJJ) is almost here, and we'll be there serving up a healthy portion of best practices for Android development and performance! #BABBQ will be held at the Hurst Convention Center in Dallas in Ft.Worth, Texas on October 22-23, 2015.

Register here (https://goo.gl/mzDItm) through August 25th and you will get 25% off when you use the promotional code "ANDROIDDEV25."

Now, sit back, and enjoy this video of some Android cowfolk preparing for this year’s BBQ!

https://goo.gl/wfdy3U

#PerfMatters #BuildBetterApps
10 comments on original post
23
3
Maarten Busstra's profile photomert gokkaya's profile photoErik Jhordan Rey Caffrey's profile photoAswathy Nath.J's profile photo
5 comments
 
So that's what happened to your hair.
Add a comment...

Colt McAnlis
moderator

Discussion  - 
 
Android Performance Patterns : Community shirt #4
It's time to let everyone in your next code review what's on your mind.

Just $12.00
Get yours until Sept 6th!

#perfmatters  
ANDROID PERFORMANCE PATTERNS COMMUNITY TEE #4! Wear your love of Android Performance proudly with this new Android Performance Patterns shirt. This bold conversation starter is a perfect way to let your fellow engineers what you're going to say at the next code review meeting.
13
1
Colt McAnlis's profile photoFred McAnlis's profile photoAnix Pasbesoin's profile photoAhmed Isam's profile photo
6 comments
 
How can I get one?
Add a comment...

Colt McAnlis

Shared publicly  - 
 
So, I'm speaking at +Big Android BBQ in October. If you register, you can get a chance to tell me how much you love Enums.. in person!

Oh, also +Reto Meier and +Chet Haase  will be there... but they don't like Enums either.... so... might get awkward..

#perfmatters  
So much more than a Developer Conference, The Big Android BBQ is a grassroots, community-driven celebration of Android that is equal parts education, entertainment, and altruism.
24
2
Colt McAnlis's profile photoAlim Naizabek's profile photoAsher Simonds's profile photoReinaldo Aguilera's profile photo
11 comments
 
I thought enums are just sugar. I'm wondering what's argumentaion for using VM and Java? It doesn't make sense to me to compile apps on slow phones when it's possible to do more complex optimizations on PC in 1/10 of time
Add a comment...

Colt McAnlis

Shared publicly  - 
 
It's not "premature" it's "preventative"
 Season 3 of Android Performance Patterns has been getting a lot of comments over what people call premature optimization but when it comes to memory on the Android platform, there's no such thing. 

preventative optimizations are about doing the small fixes, over and over again throughout your codebase to make sure that they don't pile up and bite you later. 

Dealing with things like Enums and SparseArrays may seem like you're skipping the low-hanging fruit; but that's not it at all. You're focusing on preventative maintenance so that you don't have a broken app later.
56
18
Artem Kholodnyi's profile photoUzair Mohammad's profile photoAlexander Astafurov's profile photoDavide Basso's profile photo
6 comments
 
+Colt McAnlis i dream about it everyday :)
Add a comment...
In his circles
162 people
Have him in circles
14,393 people
Rubens Brilhante's profile photo
Christopher Farnham's profile photo
Slavomir Kaslev's profile photo
Hillel Fuld's profile photo
Visual Project Management's profile photo
Anisha Kumari Yadav's profile photo
Surinder Chugh's profile photo
Jason Doucette's profile photo
Daniel Gibson's profile photo

Colt McAnlis

Shared publicly  - 
 
I like that CloudMagic used LRUCache to fix the OOMs coming from their bitmaps
They also did a great job down-sampling the size of their images, which I also endorse ;)

#perfmatters
CloudMagic is an award winning email app for iPhone, iPad and Android.
22
8
Android Resources's profile photoMarius Greve Hagen's profile photoYonatan Levin's profile photo千金辉's profile photo
5 comments
 
+Marty Ballard  Good Luck!
Add a comment...

Colt McAnlis

Shared publicly  - 
 
The most efficient way to resize bitmaps on Android
I put together a detailed SO post that lists out the three main ways to resize your bitmaps, and talks about the memory tradeoffs between them.

  #perfmatters  
78
27
Rakesh Barik's profile photosmine yang's profile photoNguyen Van Thuan's profile photoWade Reweti's profile photo
3 comments
 
Will the docs in http://developer.android.com/training/displaying-bitmaps/load-bitmap.html be updated with the SO answer? It's a bit annoying to keep track of so many different sources of information for Android development.
Add a comment...

Colt McAnlis
moderator

Discussion  - 
 
True story : That mustache was stuck to my face for about 6 hours.
The video is worth watching.
The Big Android BBQ (BABBQ) is almost here and Google Developers will be there serving up a healthy portion of best practices for Android development and performance! BABBQ will be held at the Hurst Convention Center in Dalla...
12
1
Colt McAnlis's profile photoBraden Nida's profile photo
3 comments
 
*Squeeeeee!!!
Add a comment...

Colt McAnlis

Shared publicly  - 
 
Android Performance Patterns : Community shirt #4
It's time to let everyone in your next code review what's on your mind.

Just $12.00
Get yours until Sept 6th!

  #perfmatters  
ANDROID PERFORMANCE PATTERNS COMMUNITY TEE #4! Wear your love of Android Performance proudly with this new Android Performance Patterns shirt. This bold conversation starter is a perfect way to let your fellow engineers what you're going to say at the next code review meeting.
24
4
Fung LAM (Seventh Moon)'s profile photoFerran Pons Sanchez's profile photo
Add a comment...

Colt McAnlis
moderator

Discussion  - 
 
So, I'm speaking at +Big Android BBQ  in October. If you register, you can get a chance to tell me how much you love Enums.. in person!

Oh, also +Reto Meier  and +Chet Haase  will be there... but they don't like Enums either.... so... might get awkward..

  #perfmatters  
So much more than a Developer Conference, The Big Android BBQ is a grassroots, community-driven celebration of Android that is equal parts education, entertainment, and altruism.
11
Marcel Wesołowski's profile photo
 
Enums would be ok, if Java would handle switch(null) instead of throwing NullPointerException. If C# switch statement can handle nulls then why for godsakes Java's can't...
Add a comment...

Colt McAnlis

Shared publicly  - 
 
Greenify your Wakelocks
Simple article on different types of Android wakelocks, and some apps you can use to find problems

#perfmatters  
18
4
Saad Farooq's profile photoKirill Rozov's profile photoMarius Greve Hagen's profile photoRussell Wheeler's profile photo
 
Google Play Services always at the top. Is there any help with this in the future with M? 
Add a comment...
People
In his circles
162 people
Have him in circles
14,393 people
Rubens Brilhante's profile photo
Christopher Farnham's profile photo
Slavomir Kaslev's profile photo
Hillel Fuld's profile photo
Visual Project Management's profile photo
Anisha Kumari Yadav's profile photo
Surinder Chugh's profile photo
Jason Doucette's profile photo
Daniel Gibson's profile photo
Work
Occupation
Developer Advocate
Employment
  • Google
    Developer Advocate for Games, 2011 - present
  • Blizzard Entertainment
    Senior Graphics Programmer, 2009 - 2011
  • Microsoft Ensemble Studios
    Graphics Programmer, 2005 - 2009
  • SMU Guildhall
    Adjunct Professor, 2005 - 2009
  • TKO Software
    Graphics Programmer, 2005 - 2005
  • Petroglyph
    Programming Intern, 2004 - 2004
Basic Information
Gender
Male
Other names
MainRoach, DuhRoach
Apps with Google+ Sign-in
  • AlphaBear
Story
Tagline
"If at first, the idea is not absurd, then there is no hope for it"
Introduction

Colt McAnlis is a Developer Advocate at Google focusing on Games and Performance; Before that, he was a graphics programmer in the games industry working at Blizzard, Microsoft (Ensemble), Petroglyph, and an Adjunct Professor at SMU Guildhall. Recently, he’s a UDACITY course instructor on HTML5 games and a Book Author. When he's not working with developers, Colt spends his time preparing for an invasion of giant ants from outer space.


You can follow him on G+, Twitter, Github, Linkedin, or his Blog

Education
  • Texas Christian University
    Computer Science, 2001 - 2004
The chocolates here are amazing! We stop by at least once a week, and the owners are always kind and engaging with my kids. I can't recommend this place enough!
Public - a year ago
reviewed a year ago
1 review
Map
Map
Map