ianmackenzie/elm-units

Investigate options for function inlining

Aperta

#25 aperta il 9 gen 2019

 (0 commenti) (0 reazioni) (0 assegnatari)Elm (14 fork)auto 404
help wanted

Metriche repository

Star
 (87 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Although the Elm compiler now compiles the representation of a Quantity down to a plain Int or Float when --optimize is used, there is still a performance overhead of using Quantity values since things like addition have to go through a function call (Quantity.plus) instead of just being the + operator in the generated JavaScript. It would be useful to review different JS optimizers to see if there is one that can reliably inline these kinds of functions to eliminate the function call overhead. Candidates include:

Guida contributor