Thanks! That's exactly the answer I was looking for.
The premature optimisation quote at the end of your blog post is very relevant to me. I try do find the most efficient way right off the bat so very frequently the first questions I have in a project are like this one. Which in turn lead me to understand the underlying basics, which make me want to implement those basics myself, which sends me down a spiral to wanting to write my own kernel. All the while the project I started with gets forgotten, until I pick it up a month later and the whole thing starts again.
Maybe I should just try and learn C... or zig. And try and hold myself to the higher quality standard they demand. Especially since it feels like I'm doing that already.