-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
All functions are known at compile time, as are many methods. So experiment with heavily inlining functions into the resulting code.
- Caution should be applied to ensure the resulting code does not suffer from a large amount of bloat (try on SpaceSnake and a few other big games on PMC).
- ensure tests are made on the resulting code, to see if it actually is faster, or not.
- Local variables in functions will also need to be renamed, to ensure they don't alias variables in other functions.
- Functions which inline JS should not be inlined, as they access functions using the current function names
- When used on methods, we will need to test the type at the start of the function, and throw a 'method not found' error.