Skip to content

[rust] Lookuper / PrefixKeyLookuper: switch to &self lookup for pipelining #541

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

Lookuper::lookup and PrefixKeyLookuper::lookup take &mut self, forcing bindings to hold a mutex across the network .await. Concurrent lookups on one instance serialize end-to-end. On the other hand Java pipelines on a single lookuper.

We can wrap encoder in parking_lot::Mutex, make lookup &self, release the lock before .await
Also align with bindings(1-5 lines wiring probably required)

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions