mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-12-22 16:07:31 +00:00
gc more often on mobile
This commit is contained in:
parent
cabdc27a54
commit
3a493fe894
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
package util
|
package util
|
||||||
|
|
||||||
|
import "runtime/debug"
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
debug.SetGCPercent(25)
|
||||||
|
}
|
||||||
|
|
||||||
// On mobile, just return a nil slice.
|
// On mobile, just return a nil slice.
|
||||||
func GetBytes() []byte {
|
func GetBytes() []byte {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user