mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
gc more often on mobile
This commit is contained in:
parent
cabdc27a54
commit
3a493fe894
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,12 @@
|
|||
|
||||
package util
|
||||
|
||||
import "runtime/debug"
|
||||
|
||||
func init() {
|
||||
debug.SetGCPercent(25)
|
||||
}
|
||||
|
||||
// On mobile, just return a nil slice.
|
||||
func GetBytes() []byte {
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue