Skip to content

Optimize RequestTemplate::to_request #348

@tusharmath

Description

@tusharmath

Problem
The to_request implementation is supposed to be called for every http call. We want to make sure that it's as fast as possible.

Solution
We need to perform a deep analysis of how it can be implemented in the fastest way possible. We write benchmarks to showcase current performance of the function and then once optimized show % improvements.

Technical Requirements

  • Write benchmarks and optimize RequestTemplate::to_request.
  • Showcase initial performance number and numbers after optimizations.

Additional Notes:

  • Performance can be improved by reducing allocations and using references.
  • Reducing overall compute requirements.
  • Pre-computing the request from a template in scenarios where it's possible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions