In a large bowl, whisk together the sugar, oil, eggs, vanilla, and salt until evenly mixed. Add the pineapple and banana and whisk to combine. Sprinkle the top of the batter with baking soda, cinnamon, and allspice, if using, and whisk them thoroughly into the batter, giving it several more stirs than seems necessary. Add the flour and nuts and stir to combine.