Commit 9f1f677
committed
Ensure
Previously, the `IsConvertible()` check was bypassed if `mapAssociationsOnly` was set. That makes sense, because there's no need to call `GetScalarValue()` in that case. Except that also necessitated that each of the subsequent conditions be checked, which collectively are more expensive than the check to `IsConvertible()`. As such, since scalar values are the most common type of property we're working with, it's cheaper to put this upfront and then check `mapAssociationsOnly` within it instead.IsConvertible() isn't checked for IsList() or getTopicReference()
1 parent 07094e5 commit 9f1f677
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
544 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
545 | 547 | | |
546 | 548 | | |
547 | 549 | | |
| |||
0 commit comments