From 3f6eb9e7b3303b7ec0dd23f9fe64f4c59cf210b4 Mon Sep 17 00:00:00 2001 From: Yun Feng Date: Mon, 13 Feb 2023 02:24:49 +1100 Subject: [PATCH] update change log --- .changeset/beige-numbers-enjoy.md | 2 -- .changeset/nervous-poets-grin.md | 2 +- .changeset/olive-worms-pump.md | 2 -- .changeset/real-trains-switch.md | 2 +- .changeset/serious-ants-juggle.md | 10 ++++++++++ 5 files changed, 12 insertions(+), 6 deletions(-) delete mode 100644 .changeset/beige-numbers-enjoy.md delete mode 100644 .changeset/olive-worms-pump.md create mode 100644 .changeset/serious-ants-juggle.md diff --git a/.changeset/beige-numbers-enjoy.md b/.changeset/beige-numbers-enjoy.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/beige-numbers-enjoy.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/nervous-poets-grin.md b/.changeset/nervous-poets-grin.md index eb53dd7f53..084e1c5524 100644 --- a/.changeset/nervous-poets-grin.md +++ b/.changeset/nervous-poets-grin.md @@ -6,4 +6,4 @@ 'rrweb-snapshot': patch --- -- [`fe69bd6`](https://github.com/rrweb-io/rrweb/commit/fe69bd6456cead304bfc77cf72c9db0f8c030842) [#1087](https://github.com/rrweb-io/rrweb/pull/1087) Thanks [@YunFeng0817](https://github.com/YunFeng0817)! - Refactor all suffix of bundled scripts with commonjs module from 'js' to cjs. +Refactor all suffix of bundled scripts with commonjs module from 'js' to cjs [#1087](https://github.com/rrweb-io/rrweb/pull/1087). diff --git a/.changeset/olive-worms-pump.md b/.changeset/olive-worms-pump.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/olive-worms-pump.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/real-trains-switch.md b/.changeset/real-trains-switch.md index d102959fdf..71de446836 100644 --- a/.changeset/real-trains-switch.md +++ b/.changeset/real-trains-switch.md @@ -3,4 +3,4 @@ 'rrweb': patch --- -- [`4ee86fe`](https://github.com/rrweb-io/rrweb/commit/4ee86fe66d3e1fe7071f9c8764d82a6fa5c71d57) [#1091](https://github.com/rrweb-io/rrweb/pull/1091) Thanks [@YunFeng0817](https://github.com/YunFeng0817)! - Fix: improve rrdom robustness. +Fix: improve rrdom robustness [#1091](https://github.com/rrweb-io/rrweb/pull/1091). diff --git a/.changeset/serious-ants-juggle.md b/.changeset/serious-ants-juggle.md new file mode 100644 index 0000000000..e475e12267 --- /dev/null +++ b/.changeset/serious-ants-juggle.md @@ -0,0 +1,10 @@ +--- +'rrdom': major +'rrdom-nodejs': major +'rrweb': patch +--- + +Refactor: Improve performance by 80% in a super large benchmark case. + +1. Refactor: change the data structure of childNodes from array to linked list +2. Improve the performance of the "contains" function. New algorithm will reduce the complexity from O(n) to O(logn)