(Classic) Making Your Code Faster
This page gives a few hints at writing KRL code that executes faster. Not all of them may be esthetically pleasing and thus you may chose to ignore them, sacrificing speed for code readability.
- Avoid beestings. The code within a beesting has to be parsed. A string concatenation is faster.
- Turn logging off. Logging takes time to perform and increases the size of the payload significantly.
- Ensure your module is cachable. This is a biggie because loading modules on the fly takes a lot of time. Read the module docs to find out what makes a module cachable.
Copyright Picolabs | Licensed under Creative Commons.