weixin_39833270
2021-01-02 00:21Reduce 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条回答
为你推荐
- 如何减少gccgo编译的可执行文件所需的虚拟内存?
- linux
- 2个回答
- Google App Engine Go内存管理
- memory-management
- memory
- 1个回答
- Go基准测试中的alloc / op和B / op是什么意思?
- benchmarking
- 1个回答
- 求帮忙分析下Tomcat崩溃日志
- java
- tomcat
- 3个回答
- php(web服务器)调用java无法正常工作
- java
- centos
- php
- 1个回答
换一换