pkg-config performance with >= 15 dependency chain

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


I should have referred to it as a dependency-tree. Each pc file requires every pc file higher in the sequence.
Thanks,
Sean B

From: Sean Byland <seanb at cray.com<mailto:seanb at cray.com>>
Date: Wednesday, June 19, 2013 1:40 PM
To: "pkg-config at lists.freedesktop.org<mailto:pkg-config at lists.freedesktop.org>" <pkg-config at lists.freedesktop.org<mailto:pkg-config at lists.freedesktop.org>>
Subject: pkg-config performance with >= 15 dependency chain

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/33fbac61/attachment.html>


More information about the pkg-config mailing list