Replace print with io.write in performance-sensitive code to aid compilation
Simplify nested code to aid compilation
Check C performance of branchy code instead of function pointers
Fix nested function in pushTable
Add faster ipairs iterator for table-copying to instances
Remove {...} construct from loadVariable
Avoid table.insert for simple code
Remove nested function checkPos
Remove generic cleanup code
Remove nested function definitions
Remove nested function definition from drawNoodles
Performance analysis and notes