Skip to content

Conversation

shanghaobo
Copy link

… improve loading speed #34

@shanghaobo
Copy link
Author

  • Example code
func main() {
	start := time.Now()
	fmt.Println("start")
	msg := "测试通知内容"
	notification := toast.Notification{
		AppID:   "test",
		Title:   "测试通知标题",
		Message: msg,
	}
	err := notification.Push()
	if err != nil {
		panic(err)
	}
	end := time.Now()
	fmt.Println("end")
	fmt.Printf("use time: %v", end.Sub(start))
}
  • Before fix output
start
end
use time: 3.8882003s
  • After fix output
start
end
use time: 384.8986ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant