getsentry / rrweb

record and replay the web
https://www.rrweb.io/
Other
12 stars 5 forks source link

upstream: perf: Avoid an extra function call and object clone during event emission #180

Closed billyvg closed 5 months ago

billyvg commented 5 months ago

performance: remove a nested function call and an object clone during event emission

This is an extension of PR #1339 authored by: mydea mydea@users.noreply.github.com

billyvg commented 5 months ago

Ref https://github.com/rrweb-io/rrweb/issues/1441

github-actions[bot] commented 5 months ago

size-limit report 📦

Path Size
rrweb - record only (gzipped) 16.84 KB (-0.04% 🔽)
rrweb - record & CanvasManager only (gzipped) 19.64 KB (-0.06% 🔽)
rrweb - record only (min) 57.35 KB (-0.17% 🔽)
rrweb - record with treeshaking flags (gzipped) 15.62 KB (-0.04% 🔽)