gc more often on mobile

This commit is contained in:
Arceliar 2019-09-01 11:08:25 -05:00
parent cabdc27a54
commit 3a493fe894

View File

@ -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