mirror of
https://github.com/diamondburned/cchat-gtk.git
synced 2025-01-03 09:36:50 +00:00
more lax GC duration
This commit is contained in:
parent
50376cb2b0
commit
ca935db1b8
2
main.go
2
main.go
|
@ -20,7 +20,7 @@ import (
|
||||||
func init() {
|
func init() {
|
||||||
go func() {
|
go func() {
|
||||||
// If you GC more, you have shorter STWs. Easy.
|
// If you GC more, you have shorter STWs. Easy.
|
||||||
for range time.Tick(time.Second) {
|
for range time.Tick(10 * time.Second) {
|
||||||
runtime.GC()
|
runtime.GC()
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in a new issue