Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #120829
| From | Michael S <already5chosen@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: I'm going to give up on this... |
| Date | 2024-11-03 13:41 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <20241103134118.00002365@yahoo.com> (permalink) |
| References | <vfvlo3$2lbru$1@dont-email.me> <20241031124424.00002cae@yahoo.com> <vg0c46$2p361$1@dont-email.me> |
On Thu, 31 Oct 2024 16:43:50 +0000
Vir Campestris <vir.campestris@invalid.invalid> wrote:
> On 31/10/2024 10:44, Michael S wrote:
> > In the second case it's no longer a template, right?
> > So, does it became real function instead of inline?
> > What if
> >
> > static inline
> > Masker&Masker::andequals(
> > size_t cachesize,std::vector<Prime>& primes) {
> > }
>
> That does indeed make it fast.
>
> So all that guff we've ever said about making things modular, and
> breaking functions up into small parts? If you want speed, don't do
> it.
>
I don't quite understand how it follows. Didn't you get it both modular
and fast?
BTW, I strongly suspect that it would be equally fast when you do not
specify 'inline'.
I also suspect, but less strongly, that if you opt for either Global
Program Optimization or Link-time Code Generation then it would be
equally fast even without 'static'. Less strongly, because of absence
of 1st-hand experience with GPO/LTCG on gcc tools.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
I'm going to give up on this... Vir Campestris <vir.campestris@invalid.invalid> - 2024-10-31 10:21 +0000
Re: I'm going to give up on this... Michael S <already5chosen@yahoo.com> - 2024-10-31 12:44 +0200
Re: I'm going to give up on this... Vir Campestris <vir.campestris@invalid.invalid> - 2024-10-31 16:43 +0000
Re: I'm going to give up on this... Mad Hamish <newsunspammelaws@iinet.unspamme.net.au> - 2024-11-03 21:46 +1100
Re: I'm going to give up on this... Vir Campestris <vir.campestris@invalid.invalid> - 2024-11-04 21:30 +0000
Re: I'm going to give up on this... Michael S <already5chosen@yahoo.com> - 2024-11-03 13:41 +0200
Re: I'm going to give up on this... Vir Campestris <vir.campestris@invalid.invalid> - 2024-11-04 21:24 +0000
Re: I'm going to give up on this... Sam <sam@email-scan.com> - 2024-10-31 07:47 -0400
csiph-web