简体   繁体   中英

Unzip speed is too slow

I am using react-native-zip-archive for unzip my file.

Here's my source code.

            unzip(res.path(), targetPath)
              .then((path) => {
                RNFS.unlink(res.path())
                  .then(() => {
                    console.log('FILE DELETED');
                  })
                  // `unlink` will throw an error, if the item to unlink does not exist
                  .catch((err) => {
                    console.log(err.message);
                  });
              })
              .catch((error) => {
              });

Zip file is 235MB. And extracting it takes around 30min. Is there anyway to improve extracting speed?

Thanks for your time.

我建议你使用这个zip库。这是有用的,压缩很好的pako

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM