Commit d412335
authored
perf: optimize workspace responsiveness via SVG caching and coalesced bounds checking (#6956)
* perf: optimize workspace responsiveness via SVG caching and coalesced bounds checking
This commit implements several performance optimizations:
- Implements memoization for base64Encode in musicutils.js to reduce SVG processing overhead.
- Adds an icon cache in palette.js to speed up category switching and search.
- Coalesces checkBounds calls in blocks.js during dragging using requestAnimationFrame.
- Removes redundant setTimeout throttle in activity.js for lower render latency.
* fix: remove duplicate escapeHTML method in ReflectionMatrix1 parent 2955afa commit d412335
5 files changed
Lines changed: 27 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5010 | 5010 | | |
5011 | 5011 | | |
5012 | 5012 | | |
5013 | | - | |
5014 | | - | |
5015 | | - | |
5016 | | - | |
5017 | | - | |
5018 | | - | |
5019 | | - | |
5020 | 5013 | | |
5021 | 5014 | | |
5022 | | - | |
5023 | | - | |
5024 | | - | |
5025 | | - | |
5026 | | - | |
5027 | | - | |
5028 | | - | |
5029 | | - | |
5030 | | - | |
5031 | | - | |
5032 | | - | |
5033 | | - | |
5034 | | - | |
5035 | | - | |
5036 | | - | |
5037 | | - | |
5038 | | - | |
5039 | | - | |
5040 | | - | |
5041 | | - | |
5042 | | - | |
5043 | | - | |
5044 | | - | |
5045 | | - | |
5046 | | - | |
5047 | | - | |
5048 | | - | |
5049 | 5015 | | |
5050 | 5016 | | |
5051 | 5017 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
1021 | | - | |
| 1021 | + | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | 1024 | | |
| |||
2539 | 2539 | | |
2540 | 2540 | | |
2541 | 2541 | | |
2542 | | - | |
| 2542 | + | |
2543 | 2543 | | |
2544 | 2544 | | |
2545 | 2545 | | |
| |||
2565 | 2565 | | |
2566 | 2566 | | |
2567 | 2567 | | |
2568 | | - | |
| 2568 | + | |
2569 | 2569 | | |
2570 | 2570 | | |
2571 | 2571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
48 | 62 | | |
49 | | - | |
| 63 | + | |
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
4133 | 4135 | | |
4134 | 4136 | | |
4135 | 4137 | | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
4136 | 4141 | | |
4137 | 4142 | | |
4138 | 4143 | | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
4139 | 4148 | | |
4140 | 4149 | | |
4141 | 4150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | | - | |
741 | 740 | | |
742 | 741 | | |
743 | 742 | | |
| |||
0 commit comments