weixin_39833270
weixin_39833270
2021-01-02 00:21

Reduce allocation

The fluent API is currently very allocation-intensive. It could be possible to reduce allocations by e.g. changing the arguments of format from HashMap<&'a str, FluentValue> to something like &'a [&'a str, FluentValue<'a>], and letting FluentValue store references instead of owned strings.

该提问来源于开源项目:projectfluent/fluent-rs

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

21条回答