- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitdaadf8e
Improve perf of JsonValue.CreateFromElement by calling ValueKind once (#104108)
* Improve perf of JsonValue.CreateFromElement by calling JsonElement.ValueKind only once* Use switch statement instead of multiple ifs* Update src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValue.cs* Update src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValue.cs---------Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>1 parentf8bcb89 commitdaadf8e
File tree
1 file changed
+10
-10
lines changed- src/libraries/System.Text.Json/src/System/Text/Json/Nodes
1 file changed
+10
-10
lines changedLines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
184 | | - | |
| 183 | + | |
185 | 184 | | |
186 | | - | |
187 | | - | |
| 185 | + | |
| 186 | + | |
188 | 187 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
194 | 192 | | |
195 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
0 commit comments
Comments
(0)