One problem and one possible problem:
- Put all your code inside a function. We don't JIT pseudo-mains (code in the main body).
- Run the code in a web request or if you are doing the command line use
-v Eval.Jit=true
. We disable JITting for scripts since they usually don't run a long time and the warm-up cost is more than the runtime cost.
.
function main() {
// Do everything
}
main();