Quote:
Originally Posted by scotsman
I had thought of attempting my own linux distribution
|
Please don't.
how about a utility to build/upgrade ports similiar to portmaster but multi-process (or muti-threaded) so that ports can be build much faster on multi-core processors.
one option to speed up builds is to use make -j but that doesn't work with all the ports (or so i heard).
i thought of another approach:
let say we want to build port 'A'. 'A' will recursive depend on other ports. this gives a dependency tree rooted at 'A'.
Now scan all the leaf nodes and assign them to be build concurrently on the n cpus (leaf nodes don't have any dependencies). when a port build completes remove its node from the tree, then scan the tree for any new leaf nodes and assign it to an idle cpu. the process repeats until the root node 'A' is build.
thats the general idea, you could add other refinements.
or maybe you could come up with some other idea?