Skip to content

zmq radio speedup #105

Description

@sgarg00

Originally reported by Bartosz Podrygajlo on 2026-04-30 — GitLab #1079

Instead of buffering all TX IQ on a ring buffer, they can be put in a message buffer directly, reducing the number of memcpys in the TX chain.

  1. pre-allocate message in trx_write function
zmq_msg_t msg;
zmq_msg_init_size(&msg, size);
  1. Convert IQ from c16_t in the txdata buffer to cf_t in the message
  2. push message onto a thread-safe queue
  3. in poll_thread, use the queue instead of the buffer whenever the opposite side requests IQ

This should allow higher throughput on slower CPUs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions