For gamejams, speed is key. But yes, unperfomant, sloppy, uncommented code will hinder you, especially a few days in.
And yeah, proper food and sleep is critical to success!