Because in android 4.4 and above, the implements of *decodeFile* method in 
BitmapFactory changes, the original use of BufferedInputStream is 
removed.(see this diff:
https://android.googlesource.com/platform/frameworks/base/+/ca32021b43f326af7d3f4ae041f8db297f98a518%5E%21/#F9
  
<https://android.googlesource.com/platform/frameworks/base/+/ca32021b43f326af7d3f4ae041f8db297f98a518%5E%21/#F9>
 )

<https://lh3.googleusercontent.com/-ZXoMyYVI5PE/WBCgdD6Gb6I/AAAAAAAAAH8/-4mHZOoScGoGIKwK8mmglUKXNe1aRCEGwCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20161026202238.png>

i have reasons to doubt that maybe decodeFile read more disks(with smaller 
pieces) than decodeStream+BufferedInputStream(read fix size of pieces), 
because 
i test two method in many different kinds of phones, the average time of 
decodeFile is always more than the average time of decodeStream. (more than 
10%~50%)

the comment of changes of the method say : "*Remove the call to mark, which 
is now done natively.*"
is it a bug introduced by optimization?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/98e00391-bc62-41e5-a098-60357640b1ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to