Commit 5ff3c4a
authored
Remove loops from GetWrapperOutputShape (#145)
I believe two loops were left over from refactoring:
* One loop over fieldPathParts have been replaced with recursion. The
current loop will only execute the first element, so we can remove the
loop.
* Another loop over map keys, but we can simply use a map lookup
instead for a bit better performance
There is already a unit test for this code.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent 2f11b23 commit 5ff3c4a
1 file changed
+15
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
476 | 465 | | |
477 | 466 | | |
478 | 467 | | |
479 | 468 | | |
480 | 469 | | |
481 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
482 | 481 | | |
483 | 482 | | |
484 | 483 | | |
| |||
0 commit comments