Bug 1362786 - (1) Increase subprocess BUFFER_SIZE r=kmag

While 4KiB is a decently sized buffer, bumping it to 32 on my
machine reduced the time for getSymbolsFromNM from 12s to 8s. If
32 is too large for the typical use of this, then we can instead
just parameterize this so that we can specify as large a buffer
as we want for our use case.

MozReview-Commit-ID: 3wGpHzQ9uZ5

--HG--
extra : rebase_source : d36d530dabed3b087c183408bcfbbea868bc85b0
This commit is contained in:
Doug Thayer 2017-07-21 10:20:36 -07:00
Родитель 8e14049399
Коммит 038481f251
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -25,7 +25,7 @@ Services.scriptloader.loadSubScript("resource://gre/modules/subprocess/subproces
/* global SubprocessConstants */
var EXPORTED_SYMBOLS = ["BaseProcess", "PromiseWorker", "SubprocessConstants"];
const BUFFER_SIZE = 4096;
const BUFFER_SIZE = 32768;
let nextResponseId = 0;