Glide: Android Image loader library

By

The past few weeks the Android community been ranting and raving over Glide, the new image loader kid on the block (well newish). It actually been around for almost a year. It was introduced in Google I/O 2014. I tried it last July, but the performance wasn’t significantly different to Picasso and the community was small, so I decided to continue using Picasso in all my projects. Yeah I know, I chose a product based on popularity :P Is that a bad thing?

So why did I decide to do the old switcheroo? I came across a blog post on The Cheese Factory with some performance benchmark, and it clearly illustrated how ridiculously fastER and bettER at memory usage Glide was to Picasso.

credit - The Cheese Factory

Ok great! Statistics looks awesome, now the lets look into the key factor. USABILITY!!! How easy is it to use? I’m the type that don’t really like putting in too much extra effort trying to figure out how to use a library. In my opinion, if it’s hard to implement it’s not a library. Ooops maybe I should that that back… Volley you’re awesome!

The good news if you’re familiar with Picasso you’re in Good hands. They’re very similar, and easy to implement with one liners.

//Picasso 

dependencies {
    compile 'com.squareup.picasso:picasso:2.5.1'
}

Picasso.with(context)
    .load("https://lovellfelix.com/images/logo.png")
    .into(imgView);
//Glide

dependencies {
    compile 'com.github.bumptech.glide:glide:3.5.2'
    compile 'com.android.support:support-v4:22.0.0
} 

Glide.with(context)
    .load("https://lovellfelix.com/images/logo.png")
    .into(imgView);

See they’re are very similar, but Glide is a little bit more flexible, but that’s another blog post.

Based on the performance improvement I’ve seen after switching over to Glide it definitely was worth it, and No it’s not like switching mobile network providers.

No Tricks all Treats! I promise ;)

Until next time, Happy Gliding.