Skip to content

JSONResponseParsingInterceptor Slow down #3600

@trevholliday

Description

@trevholliday

Summary

We recently upgraded 1.15.1 -> 1.23.0. We are seeing a large slowdown in performance in parsing of larger objects that have deeply nested fragments.

Here is an example of the same query being fetched in the 2 different versions.

1.15.1

☀️ [Graph Query][Deserialization] <REDACT>: {
  "time_ms" : 84.998965263366699
}

1.23.0

☀️ [Graph Query][Deserialization] <REDACT>: {
  "time_ms" : 510.68496704101562
}

Version

1.15.1

Steps to reproduce the behavior

  • using apollo 1.23.0 fetch an operation that has a large response with multiple deeply nested fragments. In comparison to 1.15.1 notice a substantial slow down in the response parsing.

Logs

Anything else?

No response

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