ethercrab-rs / ethercrab

EtherCAT master written in pure Rust
258 stars 25 forks source link

Handle frame timeout logic in response future #216

Closed jamwaffles closed 5 months ago

jamwaffles commented 5 months ago

As opposed to using a for loop. This change results in a slight reduction in binary size which was the goal of the PR.

Master:

   text    data     bss     dec     hex filename
  99472     112   57800  157384   266c8 ethercrab-stm32-embassy

This commit:

   text    data     bss     dec     hex filename
  99316     112   57800  157228   2662c ethercrab-stm32-embassy

As well as a ~10% improvement in throughput in the pdu_loop benchmark as a nice bonus.