|Re: [jgit-dev] listener for porcelain/plumbing commands?|
|When you do an add, it has to read through the files and generate a hash of the content. As such you will at a minimum find that it will take time proportional to the amount of time taken to read all of the files. Try timing cp * /dev/null or copy * NUL: and find out how long it takes to dump the files. A better estimate can be done by piping through sha1.|
Obviously the time taken to do this is proportional to the size of the files. Adding 10000 empty files on my machine takes less than a second.
If your files are sourced from a network share then clearly you will be much more impacted by IO.
On 24 Jul 2013, at 22:12, Christian Trutz wrote:
Back to the top