way too slow
lowrank opened this issue · 4 comments
lowrank commented
The trace-back part is too slow and hard to use parfor when forming the big matrix.
lowrank commented
C++ might work better in this situation,
a few things to be careful:
- ode solver implementation can be based on float precision.
- generation sparse matrix, use I,J,V method for efficiency.
- ODE runs on 20 dimension vector. (4 vector, 4x4 Jacobian). Inside each one, it is serial.
- Since time lengths are different for each ray, parallel work balance should be also considered.
- adaptivity.
lowrank commented
After profiling, the C++ version can be at least 4-6 times faster.
lowrank commented
2 exps. each iteration costs 300s (no pit) and 600s (with pit).
lowrank commented
use Julia now, 2.5x faster.