Skip to content

Commit

Permalink
feat: 尝试优化内存
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Jun 24, 2024
1 parent 1b83629 commit e6b6f06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
)

func Boot() {
debug.SetGCPercent(20)
debug.SetGCPercent(10)
debug.SetMemoryLimit(512 << 20)

zhcn.RegisterGlobal()

Expand Down

0 comments on commit e6b6f06

Please sign in to comment.