Dependencies icon indicating copy to clipboard operation
Dependencies copied to clipboard

Add option to run without BinaryCache

Open univert opened this issue 4 years ago • 4 comments

BinaryCache is inefficient when running against huge amount of dlls (i.e. large applications) with hundreds of dlls. This is not only disk space overhead also additional I/O overhead and will also cause cache thrashing . So when I am sure that file locking is not an issue, I'd like to run without BinaryCache to gain some flexibility

univert avatar Mar 29 '20 04:03 univert

Yeah, totally agree. However to prevent file locking I need to change completely my PE parser (I currently use ProcessHacker's phlib).

It's in my TODO list, but unfortunately there are a lot of items higher up in the food chain

lucasg avatar May 24 '20 13:05 lucasg

I also agree to this. Analyzing complex program (such as Photoshop.exe in my case) can take up to 500 MB BinaryCache size.

AndhikaWB avatar Feb 06 '21 13:02 AndhikaWB

I'm implemented a pretty rudimentary version: you can choose it in the "Options>Preferences>Use BinaryCache" but the settings is application wide and you need to restart Dependencies since BinaryCache is implemented as a singleton.

The default settings is to use BinaryCache. You can test it by downloading artifacts from b19e49d42b5ec3c4ea06e5da516f646f4e0a6459

Without: image

With: image

lucasg avatar May 16 '21 10:05 lucasg

It would be nice to have a command line option for running without the Binary Cache as the cache directory accumulates and becomes quite large for us (order of 100GB).

techxdave avatar Mar 21 '23 23:03 techxdave