Commit e4344f4
perf: merge attributesBaseNames and baseNameToAttr into a single attributesMap pass
Previously the keepAllInAdditional path rebuilt a baseNameToAttr reverse map
inside the conditional on every deserialization call. Hoisting it to a single
combined loop halves the attributesMap iterations per call for flagged models.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c162b49 commit e4344f4
2 files changed
Lines changed: 24 additions & 24 deletions
File tree
- packages
- datadog-api-client-v1/models
- datadog-api-client-v2/models
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3339 | 3339 | | |
3340 | 3340 | | |
3341 | 3341 | | |
3342 | | - | |
3343 | | - | |
3344 | | - | |
3345 | | - | |
3346 | 3342 | | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
3347 | 3354 | | |
3348 | 3355 | | |
3349 | 3356 | | |
| |||
3352 | 3359 | | |
3353 | 3360 | | |
3354 | 3361 | | |
3355 | | - | |
3356 | | - | |
3357 | | - | |
3358 | | - | |
3359 | | - | |
3360 | | - | |
3361 | | - | |
3362 | | - | |
3363 | 3362 | | |
3364 | 3363 | | |
| 3364 | + | |
3365 | 3365 | | |
3366 | 3366 | | |
3367 | 3367 | | |
| |||
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14355 | 14355 | | |
14356 | 14356 | | |
14357 | 14357 | | |
14358 | | - | |
14359 | | - | |
14360 | | - | |
14361 | | - | |
14362 | 14358 | | |
| 14359 | + | |
| 14360 | + | |
| 14361 | + | |
| 14362 | + | |
| 14363 | + | |
| 14364 | + | |
| 14365 | + | |
| 14366 | + | |
| 14367 | + | |
| 14368 | + | |
| 14369 | + | |
14363 | 14370 | | |
14364 | 14371 | | |
14365 | 14372 | | |
| |||
14368 | 14375 | | |
14369 | 14376 | | |
14370 | 14377 | | |
14371 | | - | |
14372 | | - | |
14373 | | - | |
14374 | | - | |
14375 | | - | |
14376 | | - | |
14377 | | - | |
14378 | | - | |
14379 | 14378 | | |
14380 | 14379 | | |
| 14380 | + | |
14381 | 14381 | | |
14382 | 14382 | | |
14383 | 14383 | | |
| |||
0 commit comments