Commit 3ecb830
committed
Remove jsonMetadata
Since we now have metadata.UnmarshalJSON there is no actual need for a jsonWrapper since we can use the easyjson lexer directly.
This improve performance a little more from:
`BenchmarkJSONMetadata_UnmarshalJSON-4 2000000 709 ns/op 408 B/op 12 allocs/op` to `BenchmarkJSONMetadata_UnmarshalJSON-4 2000000 615 ns/op 256 B/op 9 allocs/op`1 parent 3f9643d commit 3ecb830
1 file changed
+5
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 102 | + | |
120 | 103 | | |
121 | 104 | | |
122 | 105 | | |
| |||
125 | 108 | | |
126 | 109 | | |
127 | 110 | | |
128 | | - | |
| 111 | + | |
129 | 112 | | |
| 113 | + | |
130 | 114 | | |
131 | 115 | | |
132 | 116 | | |
| |||
135 | 119 | | |
136 | 120 | | |
137 | 121 | | |
| 122 | + | |
138 | 123 | | |
139 | 124 | | |
140 | 125 | | |
141 | 126 | | |
142 | | - | |
| 127 | + | |
143 | 128 | | |
0 commit comments