ianmackenzie/elm-units

Investigate options for function inlining

开放

#25 创建于 2019年1月9日

 (0 条评论) (0 个反应) (0 位负责人)Elm (14 个派生)auto 404
help wanted

仓库指标

星标
 (87 个星标)
PR 合并指标
 (平均合并 199天 2小时) (30 天内合并 1 个 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:

贡献者指南