From 5ad8b60d2d4d80842c4d60ee36479617d3d07c55 Mon Sep 17 00:00:00 2001 From: Amaan Cheval Date: Sat, 25 Mar 2017 15:31:31 +0530 Subject: [PATCH] Fix heuristic condition for using async file buffers --- src/browser/starter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/starter.js b/src/browser/starter.js index 046a280d..f46c1df7 100644 --- a/src/browser/starter.js +++ b/src/browser/starter.js @@ -237,10 +237,10 @@ function V86Starter(options) // - loads slices of the file asynchronously as requested // - slower get/set - // Heuristics: If file is smaller than 256M, use SyncFileBuffer + // Heuristics: If file is larger than or equal to 256M, use AsyncFileBuffer if(file.async === undefined) { - file.async = file.buffer.size < 256 * 1024 * 1024; + file.async = file.buffer.size >= 256 * 1024 * 1024; } if(file.async)