feat: reduce buffer size of NetToMojoPendingBuffer from 16 to 8KB (#269718)

* feat: reduce buffer size of NetToMojoPendingBuffer from 16 to 8KB

* chore: bump distro
This commit is contained in:
Robo
2025-10-04 03:32:44 +09:00
committed by GitHub
parent 6759a7ce43
commit edf756ab84
3 changed files with 4 additions and 3 deletions

2
.npmrc
View File

@@ -1,6 +1,6 @@
disturl="https://electronjs.org/headers"
target="37.6.0"
ms_build_id="12502201"
ms_build_id="12506819"
runtime="electron"
build_from_source="true"
legacy-peer-deps="true"

View File

@@ -1,7 +1,7 @@
{
"name": "code-oss-dev",
"version": "1.106.0",
"distro": "7eefb0edc90d0589e8f481c8ed3cfe00bd65c738",
"distro": "15be134acbf860e28d3a27345b6c825f3c0e1c0a",
"author": {
"name": "Microsoft Corporation"
},

View File

@@ -320,11 +320,12 @@ function configureCommandlineSwitchesSync(cliArgs: NativeParsedArgs) {
});
// Following features are enabled from the runtime:
// `NetAdapterMaxBufSizeFeature` - Specify the max buffer size for NetToMojoPendingBuffer, refs https://github.com/microsoft/vscode/issues/268800
// `DocumentPolicyIncludeJSCallStacksInCrashReports` - https://www.electronjs.org/docs/latest/api/web-frame-main#framecollectjavascriptcallstack-experimental
// `EarlyEstablishGpuChannel` - Refs https://issues.chromium.org/issues/40208065
// `EstablishGpuChannelAsync` - Refs https://issues.chromium.org/issues/40208065
const featuresToEnable =
`DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync,${app.commandLine.getSwitchValue('enable-features')}`;
`NetAdapterMaxBufSizeFeature:NetAdapterMaxBufSize/8192,DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync,${app.commandLine.getSwitchValue('enable-features')}`;
app.commandLine.appendSwitch('enable-features', featuresToEnable);
// Following features are disabled from the runtime: