Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix quadratic performance in FileTask#out_of_date?
FileTask#out_of_date? has been changed in 462e403 to call #needed? which calls #out_of_date? recursively. In some cases, where the graph of dependencies is fairly dense, this leads to quadratic performance when it was linear before. Use #all_prerequisite_tasks to avoid the problem. This also saves a File.exist? test as #timestamp already takes it into account.
- Loading branch information