lbuild icon indicating copy to clipboard operation
lbuild copied to clipboard

Add caching for generated files

Open dergraaf opened this issue 5 years ago • 3 comments

Files should not be regenerated if the configuration did not change.

dergraaf avatar May 05 '19 21:05 dergraaf

I'm not sure how much time this will save tho. For reference, building node tree for lbuild discover for a large modm example takes ~0.7s, generating the the selected modules takes ~1.8s.

Ok, generating the whole library takes ~5s. Good point.

salkinium avatar May 05 '19 21:05 salkinium

This needs to be super robust though. There is nothing worse than to start mistrusting lbuild because it didn't rebuild something.

salkinium avatar May 05 '19 22:05 salkinium

That is true. The solution I had in mind would actually not bring any speed-up (or only if we're IO write limited), but would instead allow to detect local changes by hashing/comparing the output before writing it to the output file. This would solve #19 as well.

dergraaf avatar May 06 '19 07:05 dergraaf