Numpy integration
Written by: Franck VidalSummary
This notebook shows how to speed up the simulation by avoiding memory copies when the simulated data must be accessed in Python. The table below shows runtimes for the different function calls on my current system.
Python integration | Array type | Number of images simulated in one second |
---|---|---|
False | Python | 331 |
False | Numpy | 125 |
True | Numpy | 1120 |
Aims of this session
- Revisit the example from last time;
- Estimate the speed up factor when the Numpy integration is used.