Open amznpurple opened 1 year ago
I generated some cache using the askalono cache command:
askalono cache
$ strace askalono cache load-spdx /XXX/license-list-data/json/details/
I can confirm that it created a big file. Next I ran:
$ strace askalono --cache askalono-cache.bin.zstd identify --optimize /XXX/COPYING 2>&1 | grep -i open openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/proc/self/cgroup", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/proc/self/mountinfo", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/sys/fs/cgroup/cpu,cpuacct/user.slice/cpu.cfs_quota_us", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/XXX/COPYING", O_RDONLY|O_CLOEXEC) = 3 $ askalono --version askalono 0.4.5
Output is exact except for the XXX where I hid my path.
I don't see the cache ever getting used. I assume it's not implemented? Perhaps if not, we should remove it from the CLI?
I generated some cache using the
askalono cache
command:I can confirm that it created a big file. Next I ran:
Output is exact except for the XXX where I hid my path.
I don't see the cache ever getting used. I assume it's not implemented? Perhaps if not, we should remove it from the CLI?