Skip to content

optimized wire.js inbound function, reduce combine times

zen requested to merge zengdongbao/spice-html5:master into master

If the frame data is large, it will be divided into multiple packets. In the current processing mode, each packet will be merged with the old packet into a new buffer, resulting in a large number of redundant operations. Optimization scheme: Use array cache packets, and finally use DataView.set to do a merge.

After testing, 1080p picture data merging time can be reduced from 100ms to <5ms

Signed-off-by: zengdongbao zengdongbao@gmail.com

Merge request reports