[ccache] Optimizing MD4

2015-12-11 Thread Andrew Stubbs
On 10/12/15 17:16, Anders Björklund wrote: Andrew Stubbs wrote: Most of the rest of the time is spent doing MD4. I have some ideas how to optimize that (by sharing them across runs), but nothing ready to post. I would be interested in your thoughts on how to speed that part up. My implementa

Re: [ccache] Optimizing MD4

2015-12-11 Thread Andrew Stubbs
On 11/12/15 10:16, Andrew Stubbs wrote: [*] The implementation was included in some editions of the Sourcery CodeBench toolchain, so you can find them in the source package if you really want to. I think you can find it here: https://sourcery.mentor.com/GNUToolchain/release3047 (free registration

Re: [ccache] Optimizing MD4

2015-12-11 Thread Anders Björklund
Andrew Stubbs wrote: >> I would be interested in your thoughts on how to speed that part up. > > My implementation, which does a bunch of other things besides, hence why > it's not fit to post[*], launches a background task which creates a unix > domain socket in the cache directory (the windows ve

Re: [ccache] Optimizing MD4

2015-12-11 Thread Andrew Stubbs
On 11/12/15 16:28, Anders Björklund wrote: Each invocation of ccache then connects to that socket and asks the daemon to do the MD4 scan on its behalf. The daemon checks the mtime on the file and serves the MD4 from its memory cache if nothing has changed. The stat call could probably be optimize