2021-03-13 12:17:42 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2022-08-05 07:38:47 +00:00
|
|
|
"runtime/debug"
|
2021-03-13 12:17:42 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func initGC() {
|
2022-08-05 07:38:47 +00:00
|
|
|
// Set memory limit to 100 MB
|
|
|
|
debug.SetMemoryLimit(100 * 1000 * 1000)
|
2021-03-13 12:17:42 +00:00
|
|
|
}
|