amulyakhare / TextDrawable

This light-weight library provides images with letter/text like the Gmail app. It extends the Drawable class thus can be used with existing/custom/network ImageView classes. Also included is a fluent interface for creating drawables and a customizable ColorGenerator.
MIT License
3.16k stars 623 forks source link

Library is very memory inefficient #37

Open afollestad opened 8 years ago

afollestad commented 8 years ago

It's pretty irresponsible based on how many people use this library.


This library allocates Typefaces over and over again rather than caching them, resulting in a lot of memory usage. You should be caching Typefaces using something like TypefaceHelper.

markus2610 commented 8 years ago

I thought, is a caching internally integrated. With assets files is the problem or not?

afollestad commented 8 years ago

No, if you monitor resources while an app is running, you can see that assets are allocated multiple times.

maxbeaudoin commented 7 years ago

Is this resolved? How does it play with RecyclerView?