mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-29 12:01:29 +00:00
9 lines
130 B
Go
9 lines
130 B
Go
|
package libbox
|
||
|
|
||
|
import "runtime/debug"
|
||
|
|
||
|
func SetMemoryLimit() {
|
||
|
debug.SetGCPercent(10)
|
||
|
debug.SetMemoryLimit(30 * 1024 * 1024)
|
||
|
}
|