2 people reported

All time, since Aug 30.

Slow JSON.stringify circular error

“Throw TypeError: Converting circular structure to JSON at roughly plain-input speed (Node: < 0.1 ms).”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/4858/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

JSON.stringify extremely slow to throw on circular input. Reaching the circular-structure TypeError costs seconds of CPU, far worse when an indent (space) argument is passed.

Is this your bug?

File my report
Where
JSON.stringify
Error text
TypeError: Converting circular structure to JSON
Versions
1.4.0 to 1.4.2
Platforms
Linux
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. JSON.stringify is ~2400x/19000x slower than Node on circular input (indent path ~1.7s per call)#43884
  2. JSON.stringify on a cyclic value is ~600x slower than Node, and ~130,000x slower with an indent (2.3s)#40974

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.