[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: long linking time
From: |
Vlad |
Subject: |
Re: long linking time |
Date: |
Tue, 7 Jul 2009 16:09:05 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Jul 3, 3:50 am, kkivi <konstantin.k...@gmail.com> wrote:
> Hello All
>
> We have a project on Linux that currently contains about 800 object
> files. If we link all of them as individual files
> it takes about an hour. Putting them in several static libraries and
> linking after doesn't change anything.
> However, if we build several dynamic libraries (15 ) and then link it
> takes only 2-3 minutes. Startup time doesn't change noticably.
>
> What is the reason for such behaviour and is there any way to improve
> linking time without dinamic libraries?
>
> Best regards, Konstantin
Could it be n log(n) look up for name functions?
Arbitrary suggestions: try use static functions where possible and
reduce name length.
PS. What is wrong with dynamic? that should be preferable way.