aboutcode-org / aboutcode-org/scancode-toolkit

performance issues when scanning files individually

オープン
#591 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
core and api enhancement
主要言語
Python
スター
2.6k
フォーク
791
平均マージ
1日 12時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。