Skip to content

Fix the memory leak for large payloads#841

Merged
JunDangIntuit merged 7 commits intomainfrom
feature/Fix-the-out-of-memory-and-PlayerUI.DecodingError-malformedData-issue
Apr 9, 2026
Merged

Fix the memory leak for large payloads#841
JunDangIntuit merged 7 commits intomainfrom
feature/Fix-the-out-of-memory-and-PlayerUI.DecodingError-malformedData-issue

Conversation

@JunDangIntuit
Copy link
Copy Markdown
Contributor

@JunDangIntuit JunDangIntuit commented Apr 8, 2026

  1. Serialize once and reuse — the previous approach called jsonDisplayString (which pretty-prints the entire tree) before jsonData(), doubling peak memory for large payloads.
  2. Log a truncated preview for first 500 data

refer to: https://jira.cloud.intuit.com/browse/PLAYA-10213

Change Type (required)

Indicate the type of change your pull request is:

  • patch
  • minor
  • major
  • N/A

Does your PR have any documentation updates?

  • Updated docs
  • No Update needed
  • Unable to update docs

Serialize once and reuse — the previous approach called jsonDisplayString (which
pretty-prints the entire tree) before jsonData(), doubling peak memory for large payloads.
@JunDangIntuit JunDangIntuit requested a review from a team as a code owner April 8, 2026 15:35
@JunDangIntuit
Copy link
Copy Markdown
Contributor Author

@claude please help to review this pr. thanks.

@claude
Copy link
Copy Markdown

claude Bot commented Apr 8, 2026

Claude encountered an error —— View job


I'll analyze this and get back to you.

Updated tests
Copy link
Copy Markdown
Contributor Author

JunDangIntuit commented Apr 8, 2026

import PlayerUILogger
Serialize once and reuse — the previous approach called jsonDisplayString (which
pretty-prints the entire tree) before jsonData(), doubling peak memory for large payloads.
Updated tests
import PlayerUILogger
…r-malformedData-issue' of github.com:player-ui/player into feature/Fix-the-out-of-memory-and-PlayerUI.DecodingError-malformedData-issue
Copy link
Copy Markdown
Member

@KVSRoyal KVSRoyal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

@JunDangIntuit JunDangIntuit merged commit 6ffb835 into main Apr 9, 2026
13 of 14 checks passed
@JunDangIntuit JunDangIntuit deleted the feature/Fix-the-out-of-memory-and-PlayerUI.DecodingError-malformedData-issue branch April 9, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants