Fix heuristic condition for using async file buffers

This commit is contained in:
Amaan Cheval 2017-03-25 15:31:31 +05:30 committed by Fabian
parent 48285e3fed
commit 5ad8b60d2d

View file

@ -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)