From 87c316ad35adc30047f7764d0beac760a540e9b7 Mon Sep 17 00:00:00 2001 From: rrr523 Date: Sun, 24 Dec 2023 17:11:14 +0800 Subject: [PATCH] docs: Update --- doc-site/docs/FAQs/caclute-checksum-is-slow.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc-site/docs/FAQs/caclute-checksum-is-slow.mdx b/doc-site/docs/FAQs/caclute-checksum-is-slow.mdx index 050f720a..3e3b2fde 100644 --- a/doc-site/docs/FAQs/caclute-checksum-is-slow.mdx +++ b/doc-site/docs/FAQs/caclute-checksum-is-slow.mdx @@ -40,7 +40,7 @@ const rs = new RS.ReedSolomon(); const res = rs.encode(new Uint8Array(fileBuffer)) ``` -If the file is larger, this method may cause the page to freeze when calculating. In this case, we recommend using the worker mode: +It also supports UMD mode calls (simpler and more convenient): ```html title="core lib (UMD)" @@ -74,7 +74,9 @@ If the file is larger, this method may cause the page to freeze when calculating ``` -```html title="web worker (only support UMD)" +If the file is larger, this method may cause the page to freeze when calculating. We recommend using the worker mode: + +```html title="webworker (only support UMD)" @@ -124,7 +126,7 @@ If the file is larger, this method may cause the page to freeze when calculating -Nodejs can also be used in two ways, directly with core library, or with [worker_threads](https://nodejs.org/api/worker_threads.html) (when calculating large files). +Nodejs can also be used in two ways, directly with core library, or with [worker_threads](https://nodejs.org/api/worker_threads.html) (calculating large files). ```js title="core lib" const { ReedSolomon } = require('@bnb-chain/reed-solomon')