Skip to content

Inefficient use of buffers #43

Open
@matthewgream

Description

@matthewgream

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions