Skip to content

perf: selectProviderWithPing should use Promise.race #388

@wjmelements

Description

@wjmelements

selectProvidersWithPing should use Promise.race instead of trying them all sequentially.

Originally posted by @wjmelements in #368 (comment)

This is a first step toward parallelizing createContexts. It would also speed up createContext. Lastly, the user would more often get a better storage provider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    ⌚️ Issue awaiting PR merge

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions