Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Optimize offchain worker API #6304

@arkpar

Description

@arkpar

A new instance of sc_offchain::api::AsyncApi and sc_offchain::api::Api is created for each imported block. The constructor contains CPU-heavy initialization of hyper_rustls that involves fetching and validating SSL certificates from the store. This should be optimized so that initialization is only performed once or API instance is reused.

Metadata

Metadata

Labels

I9-optimisationAn enhancement to provide better overall performance in terms of time-to-completion for a task.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions