perf: Avoid an extra function call and object clone during event emission (#1441)

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

 - rename `event` to `eventWithoutTime`, but maintain backwards compatibility
 - `eventWithTime` (with time) could be renamed to `event` in a future version

This is an extension of PR #1339 authored by: mydea <mydea@users.noreply.github.com>
This commit is contained in:
Eoghan Murray
2024-04-19 12:50:06 +01:00
committed by GitHub
parent c0f83afab8
commit ae6908dcdc
5 changed files with 151 additions and 177 deletions

View File

@@ -0,0 +1,5 @@
---
'rrweb': patch
---
perf: Avoid an extra function call and object clone during event emission