2 people reported

All time, since Sep 10.

Slow v8.getHeapStatistics()

“v8.getHeapStatistics() should take constant time regardless of the heap size”

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/5505/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

v8.getHeapStatistics() cost grows with heap size. The call walks the whole heap and blocks the JS thread for time proportional to the number of live objects.

Is this your bug?

File my report
Where
node:v8 module
Versions
1.4.2
Platforms
macOS
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. v8.getHeapStatistics() walks the whole heap on every call, so its cost grows with live objects#46391
  2. v8.getHeapStatistics() is O(heap) on Bun and costs ~2x a full GC#42200

Do you work on Bun?

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