[Rake-devel] patch: lazy proc deps
Frank van Viegen
Frank at vanViegen.net
Wed Apr 23 09:01:51 EDT 2008
This patch allows tasks to have Proc objects among their dependencies.
The Proc is executed on demand; it's return value is interpreted as a
list of files to be added to the dependy list.
This functionality can save a lot of execution time when using many
(automatically generated) file tasks that have slow dependency
discovery methods. The alternative, creating a rule for each of them,
gets pretty slow when defining more than a few hundred of them, as
they need to be regexp matched.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1665 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rake-devel/attachments/20080423/0b8e6448/attachment.bin
More information about the Rake-devel