Hi @lucasximenes, welcome to the forum!
What you have is the suggested approach.
Have you benchmarked it and found that adding the columns is a bottleneck?
My main concern is that my current implementation is not vectorized, so I’d imagine it leaves some performance gains on the table
Julia is not Python. You don’t really need to worry about vectorization.