mirror of https://github.com/shirou/gopsutil
Cache common/common_linux.Virtualization()
By assuming virtualization environment won't change during a the program's runtime, we can cache common/common_linux.Virtualization() with a simple map to reduce amount of system calls. I first mentioned this issue at https://github.com/shirou/gopsutil/pull/890#issuecomment-690211919pull/942/head
parent
8a625ec054
commit
5fd5d64304
Loading…
Reference in New Issue