ianmackenzie/elm-units

Investigate options for function inlining

オープン

#25 opened on 2019/01/09

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Elm (14 件のフォーク)auto 404
help wanted

Repository metrics

Stars
 (87 個のスター)
PR merge metrics
 (平均マージ 199d 2h) (30d で 1 merged PR)

説明

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:

コントリビューターガイド