Deutsch   English   Français   Italiano  
<87h6726oyo.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c++
Subject: Re: constexpr is really very smart!
Date: Tue, 17 Dec 2024 12:20:47 -0800
Organization: None to speak of
Lines: 17
Message-ID: <87h6726oyo.fsf@nosuchdomain.example.com>
References: <vjndub$2glcu$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 17 Dec 2024 21:20:47 +0100 (CET)
Injection-Info: dont-email.me; posting-host="be6ba1f9d988ebdec25093efcf540bc9";
	logging-data="1991943"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/ffWWPJKXMkimVPdnIBlFN"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:6xgo1nO7mjGrosaa43sPPlg7VlI=
	sha1:CGkDm+tXjOI31DhTsQmj8Qea3RY=
Bytes: 1504

Student Project <student@invalid.invalid> writes:
> The constexpr is really very smart because it can speed up algorithms 
> 1000 times according to Dave, Microsoft retired engineer. He has proved it 
> by creating this video:
>
> <https://youtu.be/8-VZoXn8f9U?si=iy1UimoWcaLG31Xi>
>
> On my computer it took 270 microseconds to calculate fib(35) like in his 
> example. It was almost instant at the blink of the eyes.

Can you post the relevant code?

[...]

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */