Avatar for the holoviz user
holoviz
datashader
BlogDocsChangelog

Optimize colorize using matmul and inplace operations

#1437
Comparing
optimize_colorize
(
2c78c6d
) with
main
(
0b5f421
)
CodSpeed Performance Gauge
+44%
Improvement
7
Untouched
45

Benchmarks

52 total
test_shade[1000-20]
datashader/tests/benchmarks/test_shade.py
CodSpeed Performance Gauge
+44%
3.3 s2.3 s
test_shade[1000-5]
datashader/tests/benchmarks/test_shade.py
CodSpeed Performance Gauge
+39%
1.5 s1.1 s
test_shade[1000-1]
datashader/tests/benchmarks/test_shade.py
CodSpeed Performance Gauge
+24%
723.6 ms582.5 ms
test_layout[forceatlas2_layout]
datashader/tests/benchmarks/test_layout.py
CodSpeed Performance Gauge
+23%
59.6 ms48.4 ms
test_shade[100-5]
datashader/tests/benchmarks/test_shade.py
CodSpeed Performance Gauge
+20%
15.6 ms13 ms
test_shade[100-20]
datashader/tests/benchmarks/test_shade.py
CodSpeed Performance Gauge
+20%
23.2 ms19.4 ms
test_quadmesh_raster[256]
datashader/tests/benchmarks/test_quadmesh.py
CodSpeed Performance Gauge
+13%
16.4 ms14.6 ms
test_shade[100-1]
datashader/tests/benchmarks/test_shade.py
CodSpeed Performance Gauge
+8%
10.3 ms9.5 ms
test_quadmesh_curvilinear[512]
datashader/tests/benchmarks/test_quadmesh.py
CodSpeed Performance Gauge
+4%
81.9 ms78.6 ms
test_dask_raster[256]
datashader/tests/benchmarks/test_raster.py
CodSpeed Performance Gauge
+3%
144.2 ms140 ms
test_dask_raster[512]
datashader/tests/benchmarks/test_raster.py
CodSpeed Performance Gauge
+1%
87 ms86.1 ms
test_quadmesh_curvilinear[1024]
datashader/tests/benchmarks/test_quadmesh.py
CodSpeed Performance Gauge
+1%
221.6 ms219.4 ms
test_layout[random_layout]
datashader/tests/benchmarks/test_layout.py
CodSpeed Performance Gauge
+1%
637.6 µs633.1 µs
test_layout[circular_layout]
datashader/tests/benchmarks/test_layout.py
CodSpeed Performance Gauge
+1%
660.8 µs656.2 µs
test_bundle[circular_layout-connect_edges]
datashader/tests/benchmarks/test_bundling.py
CodSpeed Performance Gauge
+1%
8.2 ms8.2 ms
test_quadmesh_curvilinear[2048]
datashader/tests/benchmarks/test_quadmesh.py
CodSpeed Performance Gauge
0%
873 ms869.5 ms
test_quadmesh_rectilinear[512]
datashader/tests/benchmarks/test_quadmesh.py
CodSpeed Performance Gauge
0%
66.3 ms66 ms
test_bundle[random_layout-connect_edges]
datashader/tests/benchmarks/test_bundling.py
CodSpeed Performance Gauge
0%
8.3 ms8.2 ms
test_bundle[random_layout-hammer_bundle]
datashader/tests/benchmarks/test_bundling.py
CodSpeed Performance Gauge
0%
300.8 ms299.9 ms
test_quadmesh_raster[8192]
datashader/tests/benchmarks/test_quadmesh.py
CodSpeed Performance Gauge
0%
713.3 ms712 ms
test_quadmesh_rectilinear[1024]
datashader/tests/benchmarks/test_quadmesh.py
CodSpeed Performance Gauge
0%
92 ms91.8 ms
test_bundle[circular_layout-hammer_bundle]
datashader/tests/benchmarks/test_bundling.py
CodSpeed Performance Gauge
0%
303.4 ms303.2 ms
test_quadmesh_curvilinear[4096]
datashader/tests/benchmarks/test_quadmesh.py
CodSpeed Performance Gauge
0%
3.4 s3.4 s
test_quadmesh_rectilinear[2048]
datashader/tests/benchmarks/test_quadmesh.py
CodSpeed Performance Gauge
0%
308.7 ms308.6 ms
test_bundle[forceatlas2_layout-hammer_bundle]
datashader/tests/benchmarks/test_bundling.py
CodSpeed Performance Gauge
0%
302.4 ms302.3 ms

Commits

Click on a commit to change the comparison range
Base
main
0b5f421
+11.27%
Merge branch 'main' into optimize_colorize
df4cd39
5 months ago
by philippjfr
-26.55%
Merge branch 'main' into optimize_colorize
fb29fa1
5 months ago
by hoxbro
+29.31%
Merge branch 'main' into optimize_colorize
fb2c16e
5 months ago
by hoxbro
-25.38%
Optimize rgb_array insertion
6b0982b
5 months ago
by hoxbro
-6.52%
try without nansum_missing
36a703c
5 months ago
by hoxbro
+74.56%
Merge branch 'main' into optimize_colorize
11cbfad
4 days ago
by hoxbro
-12.63%
revert wrong
2c78c6d
3 days ago
by hoxbro
© 2026 CodSpeed Technology
Home Terms Privacy Docs