Currently it takes 3.4 - 3.45 us (depending on stream-ordering or not) to create a memory view object:
In [4]: x=cp.empty((23, 4))
In [7]: %timeits=StridedMemoryView(x, -1)
3.4μs ± 8.7nsperloop (mean ± std. dev. of7runs, 100,000loopseach)
In [8]: %timeits=StridedMemoryView(x, 1)
3.45μs ± 14.6nsperloop (mean ± std. dev. of7runs, 100,000loopseach)
which could be a bit expensive in a tight loop. We should try to reduce it down to 1 us or O(100) ns if possible.
cc @shwina for vis
Currently it takes 3.4 - 3.45 us (depending on stream-ordering or not) to create a memory view object:
which could be a bit expensive in a tight loop. We should try to reduce it down to 1 us or O(100) ns if possible.
cc @shwina for vis