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.
Geth MoarVM: 0d63ddadf3 | (Stefan Seifert)++ | src/6model/serialization.c
Set sc.idx during deserialization to avoid costly lookup later

When we deserialize a collectable, we actually already know which SC it belongs to and the index in this SC. So far we've already told the the collectable about the SC, but not about the index. So the first call to MVM_sc_find_object_idx had to do a linear search of the SC to find the index. Fix by setting the idx field in the collectable header on deserialization.
This brings installation of rakudo core modules down from 7.89s to 7.21s and reduces CPU time of rakudo make test from 138.98s to 134.27s.
18:05
MoarVM: 0a62f0c6a0 | niner++ (committed using GitHub Web editor) | src/6model/serialization.c
Merge pull request #1506 from MoarVM/set_sc_idx_during_deserialization

Set sc.idx during deserialization to avoid costly lookup later
lizmat time for a bump ? 18:55
nine Sure :) Let's give this some exposure 18:58
lizmat ok, will do 18:59
MasterDuke34 merge the rakudo pr also? 19:20
lizmat MasterDuke34 which one? 19:32
MasterDuke34 github.com/rakudo/rakudo/pull/4393
lizmat done 19:33