How do I disable automatic script compiling?

When working with an agent every time I switch between subroutines, it compiles the agent I’m working on. It does this even if I haven’t changed any code. When I’m working on large agents, or ones with many included libraries, it can take 10-15 seconds, and greatly slows me down. Is there any way I can disable this behaviour?

Thanks,

Barry Holmes

Subject: How do I disable automatic script compiling?

There isn’t a way to stop the compilation. In fact Notes won’t even let you save a script if it has errors. (I once lost 1000 LOC because notes crashed while I was still coding)

Best workaround I could find was to code the large subroutines in an external .lss file and then %include these lss files into a small main script in the database. This way you can do all the “switching” in an external text editor :slight_smile:

You can configure some editors like TextPad or Ultra Edit to even have syntax highlighting for lss files.

(If you have completed the coding, you have a choice to copy paste the code into Database or keep it as is in lss files)

Another solution is to use object oriented programming and have the related methods in a single class in a script library so you don’t have to switch too much.