[英]Arraybuffer vs blob performance
Which has better performance? 哪个有更好的表现?
I'm getting data and posting it to a different url, I can send both types but which should I choose? 我正在获取数据并将其发布到不同的网址,我可以发送两种类型,但我应该选择哪种? The data is a pdf file 数据是pdf文件
Which has better performance? 哪个有更好的表现?
There should be virtually no difference. 应该几乎没有区别。
I can send both types but which should I choose for a pdf file? 我可以发送两种类型,但我应该选择哪种类型的pdf文件?
As a Blob
does represent a file with an encoding (and is superclass to named File
s), it seems more appropriate here than an ArrayBuffer
which is a raw sequence of bytes. 由于Blob
确实表示具有编码的文件(并且是名为File
s的超类),因此它似乎比作为原始字节序列的ArrayBuffer
更合适。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.