aboutcode-org / aboutcode-org/scancode-toolkit

performance issues when scanning files individually

未關閉
#591 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
core and api enhancement
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

I ran two tests: one on scanning a directory, and one on scanning all the files of the directory separately. The performance difference is quite big.

real 6m57.747s
user 6m2.996s
sys 0m48.011s

when doing:

time find /tmp/bzip2-1.0.1/ -type f -print0 | xargs -0 -n 1 ./bin/scancode

and:

real 1m0.930s
user 0m59.054s
sys 0m1.309s

when scanning the directory normally.

I did some (unprofessional) benchmarks: on my system loading the index pickle from disk takes about 3 seconds.

Maybe other alternatives, like msgpack, might work?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。