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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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