

[Il/Elle] C’est comme vous voulez, peu me chaud.
Adepte du je-m’en-foutisme.
#nobridge #nobot
Ok! Thanks for the clarification !
according to godbolt: https://rust.godbolt.org/z/hP5Y3qMPW
use rand::random;
pub fn main1() {
let mut var : u128;
loop {
var = random();
}
}
pub fn main2() {
loop {
let var : u128 = random();
}
}
compiles to:
example::main1::h45edf333d7832d08:
.Lfunc_begin8:
sub rsp, 24
.LBB8_1:
.Ltmp80:
mov rax, qword ptr [rip + rand::random::he3c23ceb967a3e28@GOTPCREL]
call rax
mov qword ptr [rsp + 8], rdx
mov qword ptr [rsp], rax
jmp .LBB8_1
.Ltmp81:
.Lfunc_end8:
example::main2::h1a899b25b96d66db:
.Lfunc_begin9:
sub rsp, 24
.LBB9_1:
.Ltmp82:
mov rax, qword ptr [rip + rand::random::he3c23ceb967a3e28@GOTPCREL]
call rax
mov qword ptr [rsp + 8], rdx
mov qword ptr [rsp], rax
jmp .LBB9_1
.Ltmp83:
.Lfunc_end9:
jmp .LBB9_1
So yeah, exactly the same thing.
I would say that they are equivalent. If I’m not mistaken, let
statements only reserves space on the stack, and this only increments the stack register.
And on the latter snippet, the compiler would certainly not bother to modify the stack pointer as the type doesn’t change.
Love megoosa 🥰
And girafusa must be powerful in combat, when you kniw how giraffes fight.
why is mercure second and all other planets not on the podium ?
sort of jessica effect but for reality instead of history
stop flexing with your 40$ watch :)
Maybe it has a link with the proprietary webauthn lib that is still included in the build even though it is supposed to be excluded ? Or because the guardian project already has its own repo so it would be pointless to publish it in these two places at the same time ?
So we’re just all part of a big family ?! 😲
Then water is even further above what we supposed.
water tastes better :/
Water is so far above everything else that EVERY SINGLE SODA is forced to add around 80% water.
This comment was made by the water gang.
I suppose it’s because the article you’re citing is from april 22nd, and that hashbrown has replaced old std hashmap in this commit, which hash been created on 24th.
I suppose (can’t test myself) that if you do the test now (hashbrown against std), the performance difference would be negligeable beacuse you would be testing roughly the same algorithms.
I already knew about the “photic sneeze reflex”, and I know someone who sneezes exactly 2 times when temperature changes (and very loudly), but not from mint afaik.
Yeah I thought about that too