You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We import this package in Dapr to allow using Kitex as a binding. Using Kitex is optional, but because of this init() method allocating a poll manager, it causes additional goroutines (and more heap allocations) for every user.
To Reproduce
Import the package
Observe that a number of goroutines is automatically created
Expected behavior
Poll Manager should be initialized lazily, only when first needed.
The text was updated successfully, but these errors were encountered:
Describe the bug
This package includes an
init()
method which is executed when the package is imported, even if not used:netpoll/poll_manager.go
Lines 44 to 51 in 4b09897
We import this package in Dapr to allow using Kitex as a binding. Using Kitex is optional, but because of this
init()
method allocating a poll manager, it causes additional goroutines (and more heap allocations) for every user.To Reproduce
Expected behavior
Poll Manager should be initialized lazily, only when first needed.
The text was updated successfully, but these errors were encountered: