mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-10 11:27:26 -05:00
allow a small amount of cache on low end devices
This commit is contained in:
parent
2594f7027a
commit
f056ad1633
@ -83,8 +83,8 @@ func init() {
|
||||
defaultBufferSize = -1 // For pipe to use unlimited size
|
||||
case defaultValue: // Env flag not defined. Use default values per CPU-arch.
|
||||
switch runtime.GOARCH {
|
||||
case "arm", "mips", "mipsle", "mips64", "mips64le":
|
||||
defaultBufferSize = 0 // Disable pipe caching for low-end devices
|
||||
case "arm", "arm64", "mips", "mipsle", "mips64", "mips64le":
|
||||
defaultBufferSize = 16 * 1024 // 16k cache for low-end devices
|
||||
default:
|
||||
defaultBufferSize = 2 * 1024 * 1024
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user