Fix heuristic condition for using async file buffers
This commit is contained in:
parent
48285e3fed
commit
5ad8b60d2d
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue