bschug / poedit

Path of Exile ItemScript Editor / Preview
20 stars 5 forks source link

Performance #25

Closed bschug closed 7 years ago

bschug commented 9 years ago

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.