Commit 6c5869f
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 e1f1ad4 commit 6c5869f
2 files changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
771 | 775 | | |
772 | 776 | | |
773 | 777 | | |
| |||
781 | 785 | | |
782 | 786 | | |
783 | 787 | | |
| 788 | + | |
784 | 789 | | |
785 | 790 | | |
786 | 791 | | |
| |||
856 | 861 | | |
857 | 862 | | |
858 | 863 | | |
859 | | - | |
| 864 | + | |
860 | 865 | | |
861 | 866 | | |
862 | 867 | | |
| |||
865 | 870 | | |
866 | 871 | | |
867 | 872 | | |
868 | | - | |
869 | | - | |
| 873 | + | |
870 | 874 | | |
871 | 875 | | |
872 | 876 | | |
| |||
| 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