We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
因为试了下上传1-2g的文件,上传速度倒是很快。但是每次等hash计算的时间确实出奇的长~(不过这是没开秒传,秒传还没试过
The text was updated successfully, but these errors were encountered:
是上传准备开始的时候,还是上传快结束的时候hash计算慢?
Sorry, something went wrong.
如果是准备开始的时候,那是在客户端计算的,这跟你客户端电脑的cpu配置有关,cpu好计算的就快,反之就慢,跟内存也有一定关系。如果是快结束的时候,则是跟服务端的配置有关。 `/* |-------------------------------------------------------------------------- | 宽松模式 |-------------------------------------------------------------------------- | | 【一般设置】在某些特殊场景,通过上传前跳过计算hash,可缩短总耗时。此选项开启后,无法进行秒传和完整性校验。默认不启用。 | | 注意:开启后需在前端同时调用setLaxMode(true)方法。 | */
'lax_mode' => false,
` 你嫌慢可以试试把宽松模式设置为true,可以跳过hash流程。
是上传准备开始的时候,显示的是正在哈希的进度条。测试的时候自己机子有测,也在公司一台专门测试的服务器级别的电脑作为客户端下也测试了下(cpu用的服务器的cpu,内存是128G这块应该暂时没有到瓶颈),但是都比之上传速度确实慢了好多。我再看看吧,感谢回复,但是如果真的没法子可能就只能关闭校验了。
No branches or pull requests
因为试了下上传1-2g的文件,上传速度倒是很快。但是每次等hash计算的时间确实出奇的长~(不过这是没开秒传,秒传还没试过
The text was updated successfully, but these errors were encountered: