getsentry/rust_arroyo

Reduce object creations in in the poll method on the Kafka consumer

オープン

#14 opened on 2022/05/20

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (0 件のフォーク)auto 404
good first issue

Repository metrics

Stars
 (2 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

This is what the Kafka consumer does https://github.com/getsentry/rust_arroyo/blob/main/src/backends/kafka/mod.rs#L136-L154

It creates a topic and a partition object for every message. We should not need all this overhead. Find a way to create only the message (even that could be questionable, but that is a bigger change) and use references to topic and partitions owned by something else.

コントリビューターガイド