Re: [ccache] does ccache include source code modified time into hash?

2014-11-13 Thread Egmont Koblinger
On Thu, Nov 13, 2014 at 2:27 PM, Andrew Stubbs wrote: > Probably there was a timestamp in a generated header somewhere. Another similar issue might be if you embed the build ID (the git commit ID) in some weird way, like e.g. midnight commander does, so that every tiny git commit causes a tota

Re: [ccache] does ccache include source code modified time into hash?

2014-11-13 Thread Andrew Stubbs
On 13/11/14 01:28, Makson Lee wrote: 2014-11-13 4:44 GMT+08:00 Andrew Stubbs mailto:a...@codesourcery.com>>: However, it might appropriate to list the factors that can lead to a cache miss, and mention some of the factors that explicitly do not cause a miss. Yes, i think the factor

Re: [ccache] does ccache include source code modified time into hash?

2014-11-12 Thread Makson Lee
2014-11-13 4:44 GMT+08:00 Andrew Stubbs : > However, it might appropriate to list the factors that can lead to a cache > miss, and mention some of the factors that explicitly do not cause a miss. Yes, i think the factors that can lead to a cache miss would be enough, currently, we are using some

Re: [ccache] does ccache include source code modified time into hash?

2014-11-12 Thread Andrew Stubbs
On 12/11/14 20:22, Joel Rosdahl wrote: Since the manual wasn't clear enough, what kind of information do you think would be good to add to the "How ccache works" section? Suggestions are very welcome. FWIW, I think that any detailed description is too much for the user manual. However, it migh

Re: [ccache] does ccache include source code modified time into hash?

2014-11-12 Thread Joel Rosdahl
Hi Makson, Since the manual wasn't clear enough, what kind of information do you think would be good to add to the "How ccache works" section? Suggestions are very welcome. -- Joel On 12 November 2014 02:26, Makson Lee wrote: > Hi Guys, > > Yes, it did help, thanks for the detailed explanation

Re: [ccache] does ccache include source code modified time into hash?

2014-11-11 Thread Makson Lee
Hi Guys, Yes, it did help, thanks for the detailed explanation. 2014-11-12 1:33 GMT+08:00 Andrew Stubbs : > On 11/11/14 15:11, Makson Lee wrote: > >> i am not sure that whether ccache will re-compile source code if we just >> change the modified time of it, can not find much about the details of

Re: [ccache] does ccache include source code modified time into hash?

2014-11-11 Thread Andrew Stubbs
On 11/11/14 15:11, Makson Lee wrote: i am not sure that whether ccache will re-compile source code if we just change the modified time of it, can not find much about the details of "how ccache works", in the manual, it just says that ccache will hash the source code, but what kinds of information

Re: [ccache] does ccache include source code modified time into hash?

2014-11-11 Thread Egmont Koblinger
Hi, I'm absolutely sure that the source code's modification times are not included. I pretty often compile, modify a file, save it, compile, undo the changes, save again, compile again -> it's grabbed from the cache. Same should happen after a git revert something like that. egmont On Tue, Nov

[ccache] does ccache include source code modified time into hash?

2014-11-11 Thread Makson Lee
i am not sure that whether ccache will re-compile source code if we just change the modified time of it, can not find much about the details of "how ccache works", in the manual, it just says that ccache will hash the source code, but what kinds of information of source code are hashed? ___