luaj.luajc
luaj.luajc copied to clipboard
Unboxing types
A recent profile of the latest version shows (unsurprisingly) that the slowest part of the code is boxing/unboxing numbers.
I feel the best thing to do would be to generate a specialised bytecode which uses doubles instead. However this would require tracking the types of variables to see where it is worthwhile not boxing the types.
- [x] Incremental/delayed compilation
- [ ] Specialise functions
- [ ] Specialising function calls
- [ ] Removing debug API calls when not needed
- [ ] Inline calls to
math.*andbit.*functions