Optimizing C++ Code for CKB-VM