<div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br></div>I filed <a href="https://github.com/scipy/scipy/issues/4573" target="_blank">https://github.com/scipy/scipy/issues/4573</a>
a few weeks ago and am still waiting for some contact from someone
involved with Scipy development that this work is wanted. I recommend
reading the issue, but the summary is that slicing a compressed sparse
matrix along the major axis with a sequence is quite slow.<br><br></div>My
method offers about a 100x speedup when selecting only a small number
of rows/columns, and causes a bit of a slowdown if selecting many rows
(but perhaps this slowdown could be limited with more development time).
I also observed that the compressed sparse matrix initialization takes a
large amount of time validating input data.<br><br></div>I'd really appreciate some feedback on things like<br><br></div>(1) is it OK if the code takes 2 different paths depending on input size (based on speculation of which would be faster)?<br></div>(2) can I add code paths for compressed matrix initialization that skip input data sanity checks?<br><br></div>before I take the time to make a PR.<br><br></div>Thanks a ton,<br></div>Eric Martin</div>