Drawing lines / add_shape()
is very slow, possible quadratic Schlemiel the Painter algorithm
#3620
Labels
add_shape()
is very slow, possible quadratic Schlemiel the Painter algorithm
#3620
To reproduce: Create
lines.py
as follows:Install plotly and run the above example.
Notice that the time per line increases linearly with the number of lines drawn.
This looks like a classic example of a Schlemiel the painter algorithm, candidate for
Joel Spolsky's collection.
Observations
I suspect that the following code locations are related to the bug.
curr_val
increases in length with each call toadd_shape()
.v
increases in length with each call.The text was updated successfully, but these errors were encountered: