Commit a44b626
committed
Don't convert pmaps to pmaps on initialization of Registries.
I.e. if it be a pmap, don't be pmapping it -- somewhat surprising
pmap doesn't already short-circuit here, but I have vague memories
of noticing this before.
This gives a ~20% speedup on a microbenchmark (of validator creation
in jsonschema which creates new Registries each time) and a ~10%
speedup on a jsonschema test run.
Thanks to @cfbolz for helping to discover it (though more problems
are lurking somewhere to find...).1 parent ee333fb commit a44b626
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
| |||
222 | 226 | | |
223 | 227 | | |
224 | 228 | | |
225 | | - | |
226 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
| |||
0 commit comments