From 3a493fe8945227b20ecbb101af014c847d15d912 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sun, 1 Sep 2019 11:08:25 -0500 Subject: [PATCH] gc more often on mobile --- src/util/bytes_mobile.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/bytes_mobile.go b/src/util/bytes_mobile.go index ceab763c..09e78050 100644 --- a/src/util/bytes_mobile.go +++ b/src/util/bytes_mobile.go @@ -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