This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Speed up ELF section merge


On Fri, May 06, 2005 at 04:04:27PM +0100, Dave Korn wrote:
> ----Original Message----
> >From: H. J. Lu
> >Sent: 06 May 2005 15:57
> 
> >>   H.J., IIUIC this patch can't do anything to support the ld command line
> >> options --hash-size=<NUMBER> and --reduce-memory-overheads; wouldn't it
> >> be worthwhile providing a means of controlling whether it uses a large
> >> hash table or not? 
> >> 
> > 
> > I am full on my plate.  A patch is more than welcome.  Thanks.
>  
> 
>   I will look at it over the weekend (if I can get --enable-targets=all
> working on cygwin....).
> 
>   Do you think it would be a reasonable approach to define a global flag
> variable for the entire bfd library that indicates minimal memory usage is
> desired, and a function such as bfd_set_memory_usage_policy() to set it?  It
> would allow us to make other functions small-memory friendly as we went
> along, without changing any existing behaviour.

It isn't a bad idear.  We already have

  --no-keep-memory            Use less memory and more disk I/O
  --reduce-memory-overheads   Reduce memory overheads, possibly taking
much long
  --hash-size=<NUMBER>        Set default hash table size close to
<NUMBER>

Can we consolidate them?


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]