Commit 54dd3db
Eliminate DataFrame copies and double data loading in datashader path
Two additional performance fixes on top of the datashader speedups:
1. Replace .assign() + .rename() with direct column assignment when
attaching the color column to the transformed element. Avoids two
full DataFrame copies (~320MB saved for 10M points).
2. Add preloaded_color_data parameter to _set_color_source_vec so
_render_points can pass already-loaded color data from get_values()
instead of triggering a redundant second load from the table.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 06b4859 commit 54dd3db
2 files changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
787 | 791 | | |
788 | 792 | | |
789 | 793 | | |
| |||
797 | 801 | | |
798 | 802 | | |
799 | 803 | | |
| 804 | + | |
800 | 805 | | |
801 | 806 | | |
802 | 807 | | |
| |||
874 | 879 | | |
875 | 880 | | |
876 | 881 | | |
877 | | - | |
| 882 | + | |
878 | 883 | | |
879 | 884 | | |
880 | 885 | | |
| |||
883 | 888 | | |
884 | 889 | | |
885 | 890 | | |
886 | | - | |
887 | | - | |
| 891 | + | |
888 | 892 | | |
889 | 893 | | |
890 | 894 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
| 1022 | + | |
1022 | 1023 | | |
1023 | 1024 | | |
1024 | 1025 | | |
| |||
1046 | 1047 | | |
1047 | 1048 | | |
1048 | 1049 | | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1056 | 1060 | | |
1057 | 1061 | | |
1058 | 1062 | | |
| |||
0 commit comments