Bug 1603276 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Using http://tankanarchy.herokuapp.com/ generating many WS logs leads to massive jank.

Recording with native memory allocation: https://perfht.ml/36mIbSc

In a single hang `js::intl_FormatDateTime` and `toLocaleTimeString` allocate about 30 Mb native memory.

Offending line: https://searchfox.org/mozilla-central/source/devtools/client/netmonitor/src/components/websockets/FrameListColumnTime.js#35

Solution is to re-use the same formatter instance: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/format

Back to Bug 1603276 Comment 0