Skip to content

Commit edf756a

Browse files
authored
feat: reduce buffer size of NetToMojoPendingBuffer from 16 to 8KB (#269718)
* feat: reduce buffer size of NetToMojoPendingBuffer from 16 to 8KB * chore: bump distro
1 parent 6759a7c commit edf756a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
disturl="https://electronjs.org/headers"
22
target="37.6.0"
3-
ms_build_id="12502201"
3+
ms_build_id="12506819"
44
runtime="electron"
55
build_from_source="true"
66
legacy-peer-deps="true"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code-oss-dev",
33
"version": "1.106.0",
4-
"distro": "7eefb0edc90d0589e8f481c8ed3cfe00bd65c738",
4+
"distro": "15be134acbf860e28d3a27345b6c825f3c0e1c0a",
55
"author": {
66
"name": "Microsoft Corporation"
77
},

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,12 @@ function configureCommandlineSwitchesSync(cliArgs: NativeParsedArgs) {
320320
});
321321

322322
// Following features are enabled from the runtime:
323+
// `NetAdapterMaxBufSizeFeature` - Specify the max buffer size for NetToMojoPendingBuffer, refs https://github.com/microsoft/vscode/issues/268800
323324
// `DocumentPolicyIncludeJSCallStacksInCrashReports` - https://www.electronjs.org/docs/latest/api/web-frame-main#framecollectjavascriptcallstack-experimental
324325
// `EarlyEstablishGpuChannel` - Refs https://issues.chromium.org/issues/40208065
325326
// `EstablishGpuChannelAsync` - Refs https://issues.chromium.org/issues/40208065
326327
const featuresToEnable =
327-
`DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync,${app.commandLine.getSwitchValue('enable-features')}`;
328+
`NetAdapterMaxBufSizeFeature:NetAdapterMaxBufSize/8192,DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync,${app.commandLine.getSwitchValue('enable-features')}`;
328329
app.commandLine.appendSwitch('enable-features', featuresToEnable);
329330

330331
// Following features are disabled from the runtime:

0 commit comments

Comments
 (0)