ArduinoMDNS icon indicating copy to clipboard operation
ArduinoMDNS copied to clipboard

Inefficient use of buffers

Open matthewgream opened this issue 1 year ago • 0 comments

To reproduce:

  • review code to observe that UDP layer will allocate RX ring buffer
  • then ArduinoMDNS packet processing will malloc UDP buffer, process it, and free UDP buffer
  • enable debug logging in ArduinoMDNS to observe that buffers are allocated on MDNS packets that are to/from other devices on network
  • ArduinoMDNS does not efficiently only allocate buffers when packets are only for itself
  • furthermore, UDP layer supports byte by byte read from ring buffer

This makes the library not performant for small memory systems.

matthewgream avatar Oct 22 '24 19:10 matthewgream