PrinterMain: micro-optimization of speed calculation