-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cache result? #206
Comments
I found that there is a one-second waiting time when the process just sleeps. See this issue/comment: #205 (comment) Therefore, I would try to do something else than caching. The one second overhead is there even if the result is cached, and it accumulates per process you run. If you consider a very quick process that calls as a dependency |
oh wow... I didn't realize that this 1 second might not really be needed when patching It would really be great to have fine-grained control about what information is gathered, since tables only needs cache sizes I think. |
get_cpu_info
takes a relatively long time and seems to do the full work everytime the function is called.However, there is probably no way this information can change during the lifetime of a running program (maybe I am missing something?).
So the result could be cached and returned immediately on subsequent calls
The text was updated successfully, but these errors were encountered: