Open Bug 1954892 Opened 7 months ago Updated 1 month ago

Lots of time spent arpund ropes on online Latex editor (https://www.tutorialspoint.com/latex_equation_editor.htm). Chrome crashes with stack_overflow

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 2 open bugs, )

Details

Attachments

(1 file)

Attached file ropey input.txt

Go to https://www.tutorialspoint.com/latex_equation_editor.htm
Input the attached sample text

Firefox: https://share.firefox.dev/4iCdPAG (30s in rope)
Chrome: stack overflow

This seems like a low priority bug, but filing in case there is anything immediately obvious here. Else, will close this as WONTFIX.

This has a toMathML function that's being called recursively (maybe why Chrome hits a stack overflow). It calls Array.prototype.join which spends time appending strings to the string builder, allocating the final string, and flattening strings.

Blocks: sm-js-perf
Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: