Array of extruded shapes is too slow

Perfect, do I understand correctly that defining geometry in the setup() function, saves computing power by not repeating the process indefinitely?