cloudwego / netpoll

A high-performance non-blocking I/O networking framework focusing on RPC scenarios.
Apache License 2.0
4.07k stars 470 forks source link

feat: lazy init pollers to avoid create any poller goroutines if netpoll is not used #306

Closed joway closed 9 months ago

joway commented 9 months ago

What type of PR is this?

feat

Check the PR title.

(Optional) Translate the PR title into Chinese.

feat: 懒加载 pollers 以避免在 netpoll 没有被使用时,创建任何 poller goroutines

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: zh(optional):

(Optional) Which issue(s) this PR fixes:

Fixes #305

(optional) The PR that updates user documentation: