From: Nick Clifton <nickc@redhat.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: binutils@sourceware.org, "Martin Storsjö" <martin@martin.st>
Subject: Re: [PATCH] ld: pe: Improve performance of object file exclude symbol directives
Date: Tue, 6 Sep 2022 14:06:44 +0100 [thread overview]
Message-ID: <f3ee40ca-8721-3c0c-8725-4e077cfea2d7@redhat.com> (raw)
In-Reply-To: <959c6306-60c5-41b7-d22c-18baf3b35ffc@suse.com>
Hi Jan,
> Well, first I was thinking of a hybrid approach - double until reaching 1024,
> then increment further by 1024. But then this seemed to be going a little too
> far, so I suggested the simpler alternative. Thoughts?
I came to exactly the same conclusion. We are definitely at risk of over-engineering
this problem.
My feeling is that the best thing to do is to choose a constant, any constant,
set it in a #define FOO <N> and then use FOO in all the right places. Then, if
at a later date we discover that <N> is too small/big we can replace it with
another value, or even a call to a function.
Cheers
Nick
next prev parent reply other threads:[~2022-09-06 13:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-02 10:59 Martin Storsjö
2022-09-05 12:54 ` Nick Clifton
2022-09-06 7:40 ` Jan Beulich
2022-09-06 11:42 ` Nick Clifton
2022-09-06 11:54 ` Jan Beulich
2022-09-06 11:59 ` Martin Storsjö
2022-09-06 13:06 ` Nick Clifton [this message]
2022-09-06 9:39 ` Martin Storsjö
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f3ee40ca-8721-3c0c-8725-4e077cfea2d7@redhat.com \
--to=nickc@redhat.com \
--cc=binutils@sourceware.org \
--cc=jbeulich@suse.com \
--cc=martin@martin.st \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).