Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.misc > #13388

Re: how much computers can do in one second

From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.misc
Subject Re: how much computers can do in one second
Date 2017-03-29 10:25 +0300
Organization A noiseless patient Spider
Message-ID <871stg4k9d.fsf@elektro.pacujo.net> (permalink)
References <8737dzq71j.fsf@therandymon.com> <87r31iudou.fsf@elektro.pacujo.net> <87vaqsvr4i.fsf@bsb.me.uk>

Show all headers | View raw


Ben Bacarisse <ben.usenet@bsb.me.uk>:

> If I simplify the loop to
>
>   for (int i = 0; i >= 0; i++);

You will likely not trigger the optimization in my code snippet, which
simply replaces

   i < i + 1

with:

   1

> The lack of optimisation means that i is not in a register so cache
> accesses are probably a limiting factor.

The optimized version of my code hangs.


Marko

Back to comp.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how much computers can do in one second RS Wood <rsw@therandymon.com> - 2017-03-27 14:43 +0300
  Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-27 15:06 +0300
    Re: how much computers can do in one second Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-29 01:55 +0100
      Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-29 10:25 +0300
      Re: how much computers can do in one second Richard Kettlewell <invalid@invalid.invalid> - 2017-03-29 08:52 +0100
        Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-29 12:43 +0300
          Re: how much computers can do in one second Caecilius <nospam@spamless.invalid> - 2017-03-30 16:07 +0100
            Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-30 19:09 +0300
              Re: how much computers can do in one second Bob Eager <news0006@eager.cx> - 2017-03-30 21:36 +0000
                Re: how much computers can do in one second Marko Rauhamaa <marko@pacujo.net> - 2017-03-31 09:56 +0300
  Re: how much computers can do in one second Huge <Huge@nowhere.much.invalid> - 2017-03-27 13:51 +0000
  Re: how much computers can do in one second Sylvia Else <sylvia@not.at.this.address> - 2017-03-28 11:57 +1100
    Re: how much computers can do in one second Huge <Huge@nowhere.much.invalid> - 2017-03-28 09:51 +0000
      Re: how much computers can do in one second Bob Eager <news0006@eager.cx> - 2017-03-28 11:12 +0000

csiph-web