This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DDA, dda_start(): don't pass mb_tail_dda as parameter.
Instead, read the global variable directly. The idea is that reading the global variable directly removes the effort to build up a parameter stack, making things faster. Actually, binary size increases by 4 bytes and the slowest step takes 3 clock cycles longer. D'oh. ATmega sizes '168 '328(P) '644(P) '1280 Program: 19274 bytes 135% 63% 31% 15% Data: 2179 bytes 213% 107% 54% 27% EEPROM: 32 bytes 4% 2% 2% 1% short-moves.gcode statistics: LED on occurences: 888. LED on time minimum: 218 clock cycles. LED on time maximum: 398 clock cycles. LED on time average: 249.111 clock cycles. smooth-curves.gcode statistics: LED on occurences: 23648. LED on time minimum: 237 clock cycles. LED on time maximum: 441 clock cycles. LED on time average: 272.222 clock cycles. triangle-odd.gcode statistics: LED on occurences: 1636. LED on time minimum: 237 clock cycles. LED on time maximum: 398 clock cycles. LED on time average: 262.576 clock cycles.
- Loading branch information