github.com/moarvm/moarvm | IRC logs at colabti.org/irclogger/irclogger_logs/moarvm
Set by AlexDaniel on 12 June 2018.
lizmat Something weird going on with: my @a = ^100000; @a.sort: *.Str 18:37
when you profile that, it appears that Mu.Bool takes about 50% of CPU of that code ? 18:38
it *is* green in the profile, but it is not getting inlined 18:39
it dispatches to Int.Bool but the proto is getting run over and over again
Int.Bool only takes about 4%, so fixing this could make sorting about 2x as fast ?
instigated by stackoverflow.com/questions/664966...es-sorting 18:40
ok, small correction: I was running this with having changed the proto to () instead of (|) 18:41
with () in the sig of the proto, it still takes 1/3 of CPU 18:42