我正在实现自己的库加载和缓存图像。我按照指令使用(适用于 Android 4.4 及更低版本)Fresco's
解码图像。我知道它与. 如果我设置,我的 java 堆大小几乎不会增加。但是我设置了,我的java堆大小明显增加了。Ashmem
options.inPurgeable = true
options.inInputShareable
options.inPurgeable
options.inInputShareable = true
options.inInputShareable = false
Ashmem
谁能告诉我为什么?谢谢
"If inPurgeable is true, then this field determines whether the bitmap can share a reference to the input data (inputstream, array, etc.) or if it must make a deep copy."
Java堆中的深拷贝吗?如何在 Ashmem 中设置它?