Commit f9e5e7a
committed
refactor(model): Use a list instead of a set for creating nodes
There should be no need for the implicit de-duplication via a set here.
Using a list (as the function documentation actually already says)
avoids the need for the final `toList()` conversion (which duplicates
nodes in memory) and avoids the performance penalty on insertion for sets.
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>1 parent 3c2cfe8 commit f9e5e7a
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | | - | |
| 442 | + | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
0 commit comments