summaryrefslogtreecommitdiff
path: root/lz.js
diff options
context:
space:
mode:
authorzengdongbao <zengdb@chinatelecom.cn>2022-01-04 16:41:32 +0800
committerzen <zengdongbao@gmail.com>2024-01-17 09:29:03 +0000
commitf279fe81faada11f531a2d88b1b50bb4990deeca (patch)
tree7220b68f4b1ecb1e66033a674a562889f1495b62 /lz.js
parent9c8377f86c3423010e5705861429761074ed63e2 (diff)
optimized wire.js inbound function, reduce combine timesHEADmaster
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>
Diffstat (limited to 'lz.js')
0 files changed, 0 insertions, 0 deletions