@Override public void applyOptions(Context context, GlideBuilder builder) { //builder.setMemoryCache(new LruResourceCache(64 * 1024 * 1024)); //builder.setBitmapPool(new LruBitmapPool(32 * 1024 * 1024)); builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888); builder.setDiskCache(new InternalCacheDiskCacheFactory(context, 2147483647)); builder.setResizeService(new FifoPriorityThreadPoolExecutor(2)); }
@Override public void applyOptions(Context context, GlideBuilder builder) { //if (VERSION.SDK_INT == VERSION_CODES.KITKAT) builder.setResizeService(new FifoPriorityThreadPoolExecutor(4)); }
@Override public void applyOptions(Context context, GlideBuilder builder) { // debug: make sure there's enough threads so delay transformations don't block the others builder.setDiskCacheService(new FifoPriorityThreadPoolExecutor(20)); builder.setResizeService(new FifoPriorityThreadPoolExecutor(20)); }