Commit 0c2b777
authored
refactor: reduce memory footprint of statistics functionality (#602)
Currently all calls during the initialization result in an initialized `ConcurrentDictionary` for each path. This PR changes the behaviour, that the entries of `PathStatistics` are only added, during a normal statistic registration.1 parent fc4df09 commit 0c2b777
File tree
17 files changed
+1447
-945
lines changed- Source/Testably.Abstractions.Testing
- FileSystem
- Statistics
17 files changed
+1447
-945
lines changedLines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 58 | | |
0 commit comments