mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-08 19:29:25 +08:00

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-690211919