Skip to content
Snippets Groups Projects
Commit f279fe81 authored by zengdongbao's avatar zengdongbao Committed by zen
Browse files

optimized wire.js inbound function, reduce combine times


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: default avatarzengdongbao <zengdongbao@gmail.com>
parent 9c8377f8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment