Skip to content
Myr

docs: Update performance.mdx (#942)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`ES5 后备实现的速度大约是代理实现的两倍,在某些情况下更糟。` , this sentence means the opposite of the original

authored by ana · committed by GitHub · parent d30d219 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:website/i18n/zh-CN/docusaurus-plugin-content-docs/current/performance.mdx+1 added-1 removed
60 unmodified lines
6162- Immer with proxies 大约比手写 reducer 慢 2 到 3 倍(上面的测试用例是最坏的情况,请参阅 `yarn test:perf` 了解更多测试情况)。这在实践中可以忽略不计。63- Immer 的速度大致与 ImmutableJS 一样快。但是,_immutableJS + toJS_ 明确了后期往往需要付出的代价;将 immutableJS 对象转换回普通对象,以便将它们传递给组件或者进行序列化操作在网络中传输......(还有将从服务器接收到的数据转换为不可变 JS 的前期成本)64- 生成 patches 不会显著减慢 immer65- ES5 后备实现的速度大约是代理实现的两倍,在某些情况下更糟。65- ES5 后备实现的速度大约比代理实现慢两倍,在某些情况下更糟。6667## 性能提示6869### 预冻结数据
14 unmodified lines