That also depends on the makeup of sugars in your food.
With a pump, i know many people if having 50carbs (of which 25 are sugar), they will often bolus immediately 50% of the dose for 50 carbs, then allow the rest of the bolus over one hour. It seems pretty smart to me
