I assume there are a lot of redundant code - this could be write more compact through (include)-variables and loops and will improve beside the editor-speed the maintaining, perhaps also the load-execution.
I just tried this and while it does allow it when the script is reloading, if does not really recognize it for the syntax checker so all of the formulas are underlined with red and it does not allow me to use the smart function that changes the word color based on the function or field name, or lists functions based on what I type. This would cause editing be become faster based on performance but much slower due to always having to check if i did something right
You are right there is probably a lot of redundant code, many formulas are referencing parts of other formulas. The code now is so complicated that I think finding and removing redundancies would take more work than dealing with the performance issue.