https://codepen.io/aragakey/pen/LYmXqEp takes some time to redraw on mouse click
Categories
(Core :: JavaScript Engine, enhancement, P3)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
290.52 KB,
image/png
|
Details |
go to https://codepen.io/aragakey/pen/LYmXqEp
Click to redraw/randomize the demo
ER: fast redraw
AR: Somewhat laggy redraw
Profile: https://share.firefox.dev/3ssiJIk
Chrome is also slow in this case so not sure if much time should be spent in investigation here.
The profile seems to suggest a couple of places ( mozilla::detail::VectorImpl::new_ , arena_t::RallocSmallOrLarge , BoyerMooreHorspool ) which spent a lot of time in Baseline. Maybe worthwhile to probe that a bit?
Reporter | ||
Comment 1•2 years ago
|
||
Screenshot from profiler which show the functions I have mentioned in the comment above.
Comment 2•2 years ago
|
||
The memset highlighted in the profile comes from reallocations done from String.unespace
, which does a realloc in ExtractWellSized, which suggest that a lot of characters were escaped.
Maybe there is a fast path to be implemented here, for cases where escaped characters are more frequent than unescaped ones, but this sounds like a low priority for the moment.
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 3•3 months ago
|
||
Latest profile: https://share.firefox.dev/4dKsk2U
Description
•