luaj.luajc icon indicating copy to clipboard operation
luaj.luajc copied to clipboard

Unboxing types

Open SquidDev opened this issue 10 years ago • 0 comments

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.* and bit.* functions

SquidDev avatar Jan 23 '16 15:01 SquidDev