Search code examples
androidbitmapmutable

Is an immutable Bitmap faster then a mutable one?


The Bitmap class has a method copy() with the signature below:

public Bitmap copy(Bitmap.Config config, boolean isMutable)

Is there a performance difference between a mutable and an immutable Bitmap?


Solution

  • Romain Guy answered in the comments:

    To answer the original question: no, there is no performance difference. There are some optimizations we could implement for mutable bitmaps though. Hopefully in a future release :)