medvednikov

/

vq Public
0 commits 21 issue 12 pull requests 0 contributors Discussions Projects CI

[Degradation] V compiler has become significantly slower #84

Alarm.

lambda:~$ time v -o mike.c sha3.v 

real	0m0.430s
user	0m0.740s
sys     0m0.346s
lambda:~$ time ~/Downloads/v-0.5.1/v -o mike.c sha3.v 

real	0m0.278s
user	0m0.226s
sys     0m0.056s

sha3.v is tiny.

lambda:~$ wc -l sha3.v 
9 sha3.v
import crypto.sha3
import time

fn main() {
    a := []u8{len: 10_000_000}
    t1 := time.now()
    _ := sha3.sum512(a)
    println(time.since(t1))
}

[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.