Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
00:00 reportable6 left 00:01 reportable6 joined
Geth MoarVM: 8f90dc7c15 | (Daniel Green)++ | 3rdparty/sha1/sha1.c
Speedup creating sha1 digest string

Instead of using sprintf to convert the byte array into the hex string, just implement the conversion manually.
  `my $a; my int $i := 0; my int $s := nqp::time; while $i++ < 1_000_000 { $a := nqp::sha1("a") }; say(nqp::div_n(nqp::time - $s, 1000000000)); say($a)`
goes from ~1.44s to ~0.48s. However, real-life impact will be much less, since we usually hash much larger strings and then the main cost is the UTF8 encoding and actual hashing.
02:33
MoarVM: 1730fd55a7 | MasterDuke17++ (committed using GitHub Web editor) | 3rdparty/sha1/sha1.c
Merge pull request #1731 from MasterDuke17/speedup_creating_sha1_digest_string

Speedup creating sha1 digest string
03:13 Kaiepi left 04:33 linkable6 left, evalable6 left 04:35 linkable6 joined, evalable6 joined 05:36 unicodable6 left, evalable6 left, nativecallable6 left, sourceable6 left, tellable6 left, coverable6 left, quotable6 left, greppable6 left, notable6 left, linkable6 left, statisfiable6 left, bisectable6 left, releasable6 left, bloatable6 left, shareable6 left, squashable6 left, benchable6 left, committable6 left, reportable6 left, bloatable6 joined 05:37 tellable6 joined, squashable6 joined, coverable6 joined, releasable6 joined, benchable6 joined, quotable6 joined 05:38 nativecallable6 joined, statisfiable6 joined, unicodable6 joined, bisectable6 joined, notable6 joined, linkable6 joined, evalable6 joined, reportable6 joined 05:39 greppable6 joined, shareable6 joined, sourceable6 joined, committable6 joined 06:00 reportable6 left, reportable6 joined 08:18 Kaiepi joined 10:21 evalable6 left, linkable6 left 10:22 evalable6 joined 10:24 linkable6 joined 11:13 sena_kun joined 12:00 reportable6 left 12:02 reportable6 joined 13:24 Kaiepi left 14:01 Kaiepi joined 16:33 evalable6 left, greppable6 left, statisfiable6 left, committable6 left, bloatable6 left, sourceable6 left, unicodable6 left, linkable6 left, releasable6 left, benchable6 left, shareable6 left, coverable6 left, quotable6 left, reportable6 left, notable6 left, squashable6 left, nativecallable6 left, tellable6 left, bisectable6 left 16:34 notable6 joined, releasable6 joined, bisectable6 joined, benchable6 joined, squashable6 joined, greppable6 joined 16:35 sourceable6 joined, quotable6 joined, committable6 joined, shareable6 joined, nativecallable6 joined 16:36 coverable6 joined, linkable6 joined, reportable6 joined, bloatable6 joined, evalable6 joined, statisfiable6 joined, unicodable6 joined, tellable6 joined 18:00 reportable6 left 18:03 reportable6 joined 19:03 bisectable6 left, bloatable6 left, squashable6 left, benchable6 left, linkable6 left, reportable6 left, notable6 left, unicodable6 left, tellable6 left, evalable6 left, statisfiable6 left, coverable6 left, releasable6 left, bisectable6 joined, linkable6 joined, releasable6 joined 19:04 evalable6 joined, squashable6 joined 19:05 statisfiable6 joined, coverable6 joined, notable6 joined 19:06 unicodable6 joined, tellable6 joined, benchable6 joined, bloatable6 joined, reportable6 joined 21:40 unicodable6 left, benchable6 left, tellable6 left, coverable6 left, statisfiable6 left, notable6 left, bisectable6 left, releasable6 left, linkable6 left, evalable6 left, reportable6 left, squashable6 left, shareable6 left, bloatable6 left, quotable6 left, greppable6 left, sourceable6 left, committable6 left, nativecallable6 left 21:41 linkable6 joined, quotable6 joined, notable6 joined 21:42 unicodable6 joined, nativecallable6 joined, bloatable6 joined 21:43 squashable6 joined, coverable6 joined, sourceable6 joined, releasable6 joined, tellable6 joined, shareable6 joined, reportable6 joined, benchable6 joined, evalable6 joined, bisectable6 joined, committable6 joined, greppable6 joined 21:44 statisfiable6 joined 22:30 Kaiepi left 22:31 squashable6 left 22:33 squashable6 joined 22:38 Kaiepi joined 23:20 sena_kun left