Article View: comp.arch
Article #915Re: Very Depressing Video
From: MitchAlsup
Date: Tue, 24 Nov 2026 01:39
Date: Tue, 24 Nov 2026 01:39
69 lines
3236 bytes
3236 bytes
BGB <cr88192@gmail.com> posted:
> On 11/22/2026 7:04 PM, John Savard wrote:
> > On Sun, 22 Nov 2026 16:34:12 -0600, BGB <cr88192@gmail.com> wrote:
> >
> >> To some extent though, does seem like much of the claimed performance
> >> gains of the past 20 years are mostly an illusion though. Most of what
> >> exists due more to "more and faster RAM" than due to the CPUs themselves
> >> actually getting all that much faster. Like, the 2000s era computers
> >> didn't have slow CPUs, they had a small amount of slow RAM (and people
> >> then blamed the CPU for the RAM's deficiencies).
To be fair, we blamed the system.
> >> People can disagree, but this is just what my experience seems to suggest.
> >
> > You are correct that ever since Dennart scaling died, CPUs haven't
> > been getting faster by leaps and bounds the way they used to. Still,
> > in addition to more RAM, there have still been...
> >
> > small incremental improvements in clock speed with scaling,
> > more cores,
> > more cache,
> > more aggressive out-of-order execution
> > ------------
> Had noted, that there seems to be a machine-dependent thing on the
> relative speed of the method used for copying a sequence of
> self-overlapping bytes.
>
> Branch/shift method:
> if(d==1)
> {
> tv=((byte *)dst)[-1];
> tv|=tv<<8;
> tv|=tv<<16;
> tv|=tv<<32;
> ((u64 *)dst)[0]=tv;
> ((u64 *)dst)[1]=tv;
> }else if(d==2)
> {
> tv=((u16 *)dst)[-1];
> tv|=tv<<16;
> tv|=tv<<32;
> ((u64 *)dst)[0]=tv;
> ((u64 *)dst)[1]=tv;
> }else
> ...
> Vs, raw byte-copy method:
> src=dst-d;
> dst[0]=src[0];
> dst[1]=src[1];
> dst[2]=src[2];
> dst[3]=src[3];
> dst[4]=src[4];
> dst[5]=src[5];
> dst[6]=src[6];
> dst[7]=src[7];
> ...
>
> On most of the targets, the former is significantly faster, but
> seemingly on the Intel side, the naive raw byte-copy method sees a large
> boost (and so is not quite so slow in comparison).
When memcopy() is an instruction, small machines can run at cache-width,
and large machines can run at cache-width × ports ...
When memcopy is for(i = 0; i < count; i++ ) to[i] = from[i]; your vVM
unit can run it at SIMD-widths {say 512-bits copied per cycle}.
Technical Details
Message-ID:
<1795484398-5857@newsgrouper.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mailReferences:
<6aff95fd.2756312@news.eternal-september.org> <6b02f61c.2940750@news.eternal-september.org> <11dvql5$1cfvl$1@dont-email.me> <6b038fcc.42284937@news.eternal-september.org> <11e28vv$27g58$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail From: MitchAlsup <user5857@newsgrouper.org.invalid> Newsgroups: comp.arch Subject: Re: Very Depressing Video References: <6aff95fd.2756312@news.eternal-september.org> <6b02f61c.2940750@news.eternal-september.org> <11dvql5$1cfvl$1@dont-email.me> <6b038fcc.42284937@news.eternal-september.org> <11e28vv$27g58$1@dont-email.me> Date: Tue, 24 Nov 2026 01:39:58 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <1795484398-5857@newsgrouper.org> Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857 Injection-Date: Tue, 24 Nov 2026 01:39:58 GMT User-Agent: Newsgrouper/0.9.0