Well, I doubt you can avoid exponential slowdown as size increase increases number of objects exponentially.
you could possibly gain some performance if you store the object in a variable outside of the loops,
var logo = getLogo();
then inside the loop
arr.push(logo.translate([i * space, j * space, k * space]));
I am not 100% sure if it will work or help with perf, but try it anyway