Skip to content

add function inlining #4

@JosephLenton

Description

@JosephLenton

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions