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
Is your feature request related to a problem? Please describe.
i'm using net.IOCounters to calc upstream and downstream speed, so i will call net.IOCounters every second,but when i use pprof to watch the performance , i found net.IOCounters will cost a 22% memory ,the flame is like
Describe the solution you'd like
i wish you can optimise the func to use sync.pool or other techs to reduce memery cost
Describe alternatives you've considered
use sync.pool or other techs
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
i'm using net.IOCounters to calc upstream and downstream speed, so i will call net.IOCounters every second,but when i use pprof to watch the performance , i found net.IOCounters will cost a 22% memory ,the flame is like
Describe the solution you'd like
i wish you can optimise the func to use sync.pool or other techs to reduce memery cost
Describe alternatives you've considered
use sync.pool or other techs
Additional context
The text was updated successfully, but these errors were encountered: