Commit aa8bb81
committed
Avoid further setter binding when possible
As of gh-1163, the `GraphQlArgumentBinder` can bind using both a
constructor and setters. This is especially useful for Kotlin data
classes. This change introduced a significant performance penalty for
large and deep data sets.
This commit ensures that we are only performing setter binding for input
data that was not already consumed during the constructor binding phase.
Fixes gh-12841 parent dfa486b commit aa8bb81
File tree
1 file changed
+7
-4
lines changed- spring-graphql/src/main/java/org/springframework/graphql/data
1 file changed
+7
-4
lines changedLines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
290 | | - | |
| 292 | + | |
| 293 | + | |
291 | 294 | | |
292 | 295 | | |
293 | 296 | | |
| |||
302 | 305 | | |
303 | 306 | | |
304 | 307 | | |
305 | | - | |
306 | | - | |
307 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
| |||
0 commit comments