Commit 3bb90fd
committed
v6b: Batch adding to container => 80K balls
In version 6 (or 6a), we show balls by attaching them to container node one by one, might results in continuous forced reflow (if CSS is more complex).
In version 6b, we use a temporary DocumentFragment node to store those balls, then add them to container all at once.
The result is not much better. So we need to find another way to improve version 6.1 parent e2284fd commit 3bb90fd
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| 240 | + | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
| 247 | + | |
| 248 | + | |
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
| |||
0 commit comments