Skip to content

Commit 3bfc46d

Browse files
committed
Issue nostra13#249 : Buffer size 8K -> 32K
1 parent 85808ab commit 3bfc46d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

library/src/com/nostra13/universalimageloader/core/LoadAndDisplayImageTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ final class LoadAndDisplayImageTask implements Runnable {
7474
private static final String ERROR_POST_PROCESSOR_NULL = "Pre-processor returned null [%s]";
7575
private static final String ERROR_PROCESSOR_FOR_DISC_CACHE_NULL = "Bitmap processor for disc cache returned null [%s]";
7676

77-
private static final int BUFFER_SIZE = 8 * 1024; // 8 Kb
77+
private static final int BUFFER_SIZE = 32 * 1024; // 32 Kb
7878

7979
private final ImageLoaderEngine engine;
8080
private final ImageLoadingInfo imageLoadingInfo;

library/src/com/nostra13/universalimageloader/core/download/BaseImageDownloader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class BaseImageDownloader implements ImageDownloader {
5151
public static final int DEFAULT_HTTP_READ_TIMEOUT = 20 * 1000; // milliseconds
5252

5353
/** {@value} */
54-
protected static final int BUFFER_SIZE = 8 * 1024; // 8 Kb
54+
protected static final int BUFFER_SIZE = 32 * 1024; // 32 Kb
5555
/** {@value} */
5656
protected static final String ALLOWED_URI_CHARS = "@#&=*+-_.,:!?()/~'%";
5757

library/src/com/nostra13/universalimageloader/utils/IoUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929
public final class IoUtils {
3030

31-
private static final int BUFFER_SIZE = 8 * 1024; // 8 KB
31+
private static final int BUFFER_SIZE = 32 * 1024; // 32 KB
3232

3333
private IoUtils() {
3434
}

0 commit comments

Comments
 (0)