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
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 get_cpu_info, and this process is called hundrends or thousands of times per hour, then this overhead becomes unacceptable.
oh wow... I didn't realize that this 1 second might not really be needed when patching pytables yesterday to not run this on import but just when needed.
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: