Commit 9938e2d
Improve performance of expanding and collapsing spans (#2722)
## Which problem is this PR solving?
closes #2179
## Description of the changes
Use Set and Map to make lookups faster.
This changes makes collapsing and expanding spans with large (10k)
amount of children 200-500ms faster.
## Before

## After

## How to test
1. Generate data - `go run cmd/tracegen/main.go -service abcd -traces 1
-spans 10000`
1. Collapse root span

Signed-off-by: Damian Maslanka <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>1 parent 72a976f commit 9938e2d
File tree
1 file changed
+8
-6
lines changed- packages/jaeger-ui/src/components/TracePage/TraceTimelineViewer
1 file changed
+8
-6
lines changedLines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| |||
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
171 | | - | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | | - | |
| 176 | + | |
175 | 177 | | |
176 | | - | |
| 178 | + | |
177 | 179 | | |
178 | | - | |
179 | | - | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | | - | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
0 commit comments