Open Bug 1403683 Opened 2 years ago Updated 1 year ago
Stress testing open/close Inspector is slow to show markup & data
Tested on https://pudding.cool/2017/03/hamilton/index.html with a MBP. Profile: https://perfht.ml/2wWM9iC Testing this with bgrins, the profile shows overhead of CSS parsing. The files are not large, so there is no reason to be slow.
In this case it looks like the parsing is being done on the server. There, it would be possible to use the platform's CSS lexer. That might help somewhat. The only real difficulty here is that the shared code can't solely rely on this, as it might also be used on the client. The other question is whether, maybe, it makes sense to cache the parsed form in the styles actor.
You need to log in before you can comment on or make changes to this bug.