Closed NougatBitz closed 10 months ago
getPosition Heavily decreased the performance due to using the gsub function. This change decreased the parsing time of a 27kb file from 4.35 seconds to just 0.1 seconds. getPosition also behaved incorrectly as is returned the wrong line position.
getPosition
gsub
Before:
After:
Efficiency increase:
Looks great, I will merge this.
getPosition
Heavily decreased the performance due to using thegsub
function. This change decreased the parsing time of a 27kb file from 4.35 seconds to just 0.1 seconds.getPosition
also behaved incorrectly as is returned the wrong line position.Before:![Before](https://i.imgur.com/bjAPSRw.png)
After:![After](https://i.imgur.com/aHR0Xjf.png)
Efficiency increase:![Efficiency increase](https://i.imgur.com/FXHwaSc.png)