From 7e2bb587106f15f07d44c61aba713e442345a0f6 Mon Sep 17 00:00:00 2001 From: ana <853198512@qq.com> Date: Wed, 18 May 2022 16:17:20 +0800 Subject: [PATCH] Update performance.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `ES5 后备实现的速度大约是代理实现的两倍,在某些情况下更糟。` , this sentence means the opposite of the original --- .../docusaurus-plugin-content-docs/current/performance.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/performance.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/performance.mdx index b28b3bc8..c9bba401 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/performance.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/performance.mdx @@ -62,7 +62,7 @@ title: Immer 性能 - Immer with proxies 大约比手写 reducer 慢 2 到 3 倍(上面的测试用例是最坏的情况,请参阅 `yarn test:perf` 了解更多测试情况)。这在实践中可以忽略不计。 - Immer 的速度大致与 ImmutableJS 一样快。但是,_immutableJS + toJS_ 明确了后期往往需要付出的代价;将 immutableJS 对象转换回普通对象,以便将它们传递给组件或者进行序列化操作在网络中传输......(还有将从服务器接收到的数据转换为不可变 JS 的前期成本) - 生成 patches 不会显著减慢 immer -- ES5 后备实现的速度大约是代理实现的两倍,在某些情况下更糟。 +- ES5 后备实现的速度大约比代理实现慢两倍,在某些情况下更糟。 ## 性能提示