Not trying to dunk on a useful (and free!) software project, but I really feel that if your combination of Vimscript, Ruby, and C is too slow, the next step is not “get some ASM in there too.”
(If ripgrep and fd are any indication, Rust has some mature libraries in this area, and Rust programs compile down to a single binary.)