Commit 0db46cf
perf: Avoid unnecessary String construction in CustomClassMapper
This change optimizes the CustomClassMapper by avoiding the construction
of the "No setter/field" error message when both throwOnUnknownProperties
and warnOnUnknownProperties are false. This scenario occurs commonly
when using @IgnoreExtraProperties.
Benchmark results show a ~28x improvement for deserializing objects with
many unknown properties.
Co-authored-by: lahirumaramba <55609+lahirumaramba@users.noreply.github.com>1 parent b095a06 commit 0db46cf
1 file changed
Lines changed: 15 additions & 13 deletions
Lines changed: 15 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
746 | 748 | | |
747 | 749 | | |
748 | 750 | | |
| |||
0 commit comments