SpadeMC/Spade

Function In-lineing

Opened this issue · 0 comments

Proposal─where functions are only used a few times, it may be beneficial to simply copy their code and integrate it in to the surrounding code-base.

Pros:

  • Generated code will have greater spacial locality
    • Number of generated files will be diminished

Cons:

  • Length of generated files increased
  • Increased compile-time

This method depends heavily on an arbitrary threshold for the number of uses beneath which this optimisation is triggered. (We'll have to figure this out)