Commit 2412841
Add `Any` overload for `SyntaxTokenList`, saves 0.5 MB on the complex
code bencmark.
### Benchmarks
#### Before
| Method | Mean | Error | StdDev | Gen0 | Gen1 | Gen2 | Allocated |
|------------------------------
|---------:|--------:|---------:|----------:|----------:|----------:|----------:|
| Default_CodeFormatter_Complex | 241.7 ms | 7.22 ms | 21.17 ms |
7000.0000 | 4000.0000 | 1000.0000 | 61.61 MB |
#### After
| Method | Mean | Error | StdDev | Gen0 | Gen1 | Gen2 | Allocated |
|------------------------------
|---------:|--------:|--------:|----------:|----------:|----------:|----------:|
| Default_CodeFormatter_Complex | 234.2 ms | 4.65 ms | 6.82 ms |
7000.0000 | 4000.0000 | 1000.0000 | 61.09 MB |
Co-authored-by: Bela VanderVoort <[email protected]>
1 parent 35a939e commit 2412841
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
37 | 52 | | |
38 | 53 | | |
39 | 54 | | |
| |||
0 commit comments