The tool becomes very unresponsive with large scripts. The reason for this is the way we currently save and restore the cursor position when the code is run through the syntax highlighting / formatting stage. We use the rangy library for this, which allows us to express the cursor position as the number of characters before the cursor. I'm not sure if there is any optimization potential in rangy itself or if the approach of counting characters itself is the problem.
The tool becomes very unresponsive with large scripts. The reason for this is the way we currently save and restore the cursor position when the code is run through the syntax highlighting / formatting stage. We use the rangy library for this, which allows us to express the cursor position as the number of characters before the cursor. I'm not sure if there is any optimization potential in rangy itself or if the approach of counting characters itself is the problem.