Skip to content

Memoization #2

@yeegor

Description

@yeegor

Overview

In Opus, queries are built as objects and then serialized into a graphql document.

The serialization process, although is pretty fast already, can be improved with memoization, at least partly.

Requirements

When having a query for e.g. product, one will fetch it several times for different products with different arguments, but the query itself will remain the same. Hence, when re-fetching a query, it will be necessary to:

  1. process the arguments all over again
  2. use the result of previous query serialization for the body itself

Such a change will bring some additional bundle size. It is required to take a weighted decision on whether such an improvement in performance is worth it. The bundle size growth must be minimal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions