JSTerm is slow when the console output has a lot of messages

NEW
Unassigned

Status

()

Firefox
Developer Tools: Console
P2
normal
a month ago
20 hours ago

People

(Reporter: nchevobbe, Unassigned)

Tracking

(Depends on: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(firefox57 affected)

Details

(Whiteboard: [reserve-console-html])

(Reporter)

Description

a month ago
Steps to reproduce:

1. Open the console
2. Enter `Array.from({length: 500}).forEach((_, i) => console.log("log message", i))` . That will log 500 messages in the console output
3. Wait until all messages are displayed
4. In the console input (aka JSTerm), enter `console`


Expected results:
The `console` word appears as I type it

Actual results:
I see some lag when typing

---

Here's a profile corresponding to the STR : https://perfht.ml/2vYb4mc

Typing `console` takes ~1s to complete, which seems a lot.

Here's another profile recorded with the STR, except I didn't entered `console` but a simple `q` key stroke : https://perfht.ml/2vXArVf

`resizeInput` takes 127ms to complete, which explains the lag we are seeing.
(Reporter)

Updated

a month ago
Priority: -- → P2
Whiteboard: [reserve-console-html]
(Reporter)

Comment 1

20 hours ago
Bug 1409413 might help here, let's profile again when it lands
Depends on: 1409413
You need to log in before you can comment on or make changes to this bug.