Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid rewriting files with identical contents #368
I think sbt handles this reasonably (by hashing file contents), but it appears that maven pays more attention to file modification times. It slows down things enough already that guardrail runs each time a build is run, but having to recompile files that haven't changed just adds insult to injury.
Of course, guardrail still has to do all the work to render the new files' contents to memory no matter what; in general that should be the dominating time factor. There's only one case that ends up being worst (where "worst" is probably a few hundreds of nanoseconds per file extra), which should be the very, very, very uncommon case (as it requires the files to be different, but also the same size).
Contributing to Twilio