bob icon indicating copy to clipboard operation
bob copied to clipboard

Directory tree hashing should be improved

Open jkloetzke opened this issue 5 years ago • 2 comments

Whem Bob has to hash a multi-GB workspace it will be stuck for a long time. It also looks like the current algorithm does not handle caching very well if parts of the workspace are updated. The re-hashing still takes very long even though the cache miss rate should be negligible.

  • There may be a bug in the cache handling in face of partial workspace changes
  • There should be some user feedback if hashing takes very long
  • The cache may be improved by compressing common prefixes (like git does)

jkloetzke avatar Nov 13 '19 20:11 jkloetzke

I guess, this ticket and https://github.com/BobBuildTool/bob/issues/262 are the same? Could we mark one of them as duplicte?

mahaase avatar Dec 18 '19 09:12 mahaase

Actually not. This ticket is about a suspected inefficiency in the algorithm. The other ticket is about the fact that on MSYS on Windows Bob cannot use the right syscalls and is very slow because of that.

jkloetzke avatar Dec 19 '19 19:12 jkloetzke