Commit b54f867
perf: remove redundant array deepcopy (#26)
* perf(bigquery): remove redundant array deepcopy deepcopy can be a very costly operation when considering large arrays with complex nested objects. refactor helpers to allow recursive conversion without copying arrays. * add check to ignore REPEATED mode * Update google/cloud/bigquery/_helpers.py Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Co-authored-by: Tres Seaver <tseaver@palladion.com> Co-authored-by: Tim Swast <swast@google.com> Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>1 parent d1eb8b3 commit b54f867
File tree
2 files changed
+64
-10
lines changed- google/cloud/bigquery
- tests/unit
2 files changed
+64
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
397 | 396 | | |
398 | 397 | | |
399 | 398 | | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | 399 | | |
405 | 400 | | |
406 | | - | |
| 401 | + | |
407 | 402 | | |
408 | 403 | | |
409 | 404 | | |
| |||
462 | 457 | | |
463 | 458 | | |
464 | 459 | | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
465 | 487 | | |
466 | 488 | | |
467 | 489 | | |
| |||
483 | 505 | | |
484 | 506 | | |
485 | 507 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
| 508 | + | |
490 | 509 | | |
491 | 510 | | |
492 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
809 | 844 | | |
810 | 845 | | |
811 | 846 | | |
| |||
0 commit comments