Commit 879e78a
Noam Preil
optimization: schema: use slices.Sort instead of sort.Slice
Shaves off ~1/3rd of the time of Metadata.Equal for me; sort.Slice takes
in `any` as the type of the slice, which requires converting the slice to
an interface - which itself requires allocating and converting the
pointer to the slice header to use as the interface value.1 parent f657566 commit 879e78a
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
133 | | - | |
| 133 | + | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
0 commit comments