“b3488855facca8222dbb90b6d1491572ec1affdd”上不存在“docs/git@gitcode.net:qq_43532655/uni-app.git”
提交 522e0af7 编写于 作者: V Veljko 提交者: GitHub

Optimize sending data from worker

When transferable list is specified, postingMessage to worker doesn't copy data.
Since ctm.js references original data, we can specify original stream to be transferred back to the main thread.
上级 0ba1ee77
......@@ -9,7 +9,7 @@ self.onmessage = function( event ) {
var stream = new CTM.Stream( event.data.data );
stream.offset = event.data.offsets[ i ];
files[ i ] = new CTM.File( stream );
files[ i ] = new CTM.File( stream, [event.data.data.buffer] );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册