Skip to content

Provide interfaces to prepare SQE in place #116

@jiangliu

Description

@jiangliu

Currently the way to submit an SQE is:

  1. prepare an opcode object op
  2. convert the opcode into SQE by op.build()
  3. submit the SQE to SQ by sq.push()/push_multiple()

It would be great to provide interfaces to prepare SQE in place to reduce one memory copy by:

  1. prepare an opcode object op
  2. check space left on the SQ and get available SQE by let sqe: &mut Entry = sq.prepare()
  3. Prepare the SQE inplace by op.prepare(sqe)
  4. commit the sqe by sq.commit()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions