pkg-config performance with >= 15 dependency chain

Sean Byland seanb at cray.com
Wed Jun 19 11:40:23 PDT 2013


Hello,
This rudimentary script shows that pkg-config's performance when building a depended chain. It is extremely quick when the chain length is under 12, but seems to slow down exponentially becoming unacceptably slow after about 16. I know of some scientific libraries that have 50 length dependency chains . Is there a simple method to increase the performance and these longer lengths. I know all libraries for a single product could be put into a single pc file, but it seems like a shame to loose the single library "addressability" .

Thanks,
Sean B.

Bound #9 :

real 0m0.004s
user 0m0.000s
sys 0m0.004s
Bound #10 :

real 0m0.005s
user 0m0.004s
sys 0m0.000s
Bound #11 :

real 0m0.011s
user 0m0.008s
sys 0m0.004s
Bound #12 :

real 0m0.033s
user 0m0.028s
sys 0m0.000s
Name:1
Bound #13 :

real 0m0.128s
user 0m0.128s
sys 0m0.000s
Bound #14 :

real 0m0.513s
user 0m0.508s
sys 0m0.004s
Bound #15 :

real 0m2.179s
user 0m2.176s
sys 0m0.004s
Bound #16 :

real 0m10.153s
user 0m10.153s
sys 0m0.000s
Bound #17 :

real 0m42.787s
user 0m42.787s
sys 0m0.000s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pkg-config/attachments/20130619/8619f7e5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: time-pkgconfig.sh
Type: application/octet-stream
Size: 588 bytes
Desc: time-pkgconfig.sh
URL: <http://lists.freedesktop.org/archives/pkg-config/attachments/20130619/8619f7e5/attachment.obj>


More information about the pkg-config mailing list