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
Since there's 1000 to 2000 dynamic libs to check in each of our images, the check on a macOS when using ldd can take 70 or more seconds.
When mentioned on a daily meeting, ppl weren't very concerned, so I'm not going to optimize this now.
For the future, already tried out one approach, using the debug/elf package in Go's standard library to simply read the DT_NEEDED field out of the libraries and check that. It's quite a lot of code, but it seems to work, and work fast. check_elf_file_2.go.txt
Alternatively, it should be possible to just go around loading the dlls from the python script directly, to see if it loads or not
from ctypes import CDLL
try:
CDLL(lib_path)
print(f"Successfully loaded: {lib}")
except Exception as e:
print(f"Error loading {lib}: {e}")
Since there's 1000 to 2000 dynamic libs to check in each of our images, the check on a macOS when using ldd can take 70 or more seconds.
When mentioned on a daily meeting, ppl weren't very concerned, so I'm not going to optimize this now.
For the future, already tried out one approach, using the debug/elf package in Go's standard library to simply read the DT_NEEDED field out of the libraries and check that. It's quite a lot of code, but it seems to work, and work fast.
check_elf_file_2.go.txt
Alternatively, it should be possible to just go around loading the dlls from the python script directly, to see if it loads or not
Originally posted by @jiridanek in #871 (comment)
The text was updated successfully, but these errors were encountered: