I have a loop that renders a partial
1000.times do |i|
render partial: \'test\', locals: {i: i}
end
this is really slow, up to 0.1 ms for for
I love this question, but it may be a "wrong tool for the job" thing
Basically:
Plan Bs:
gsub
PS have you tried out cells? https://github.com/apotonick/cells