@@ -14,6 +14,29 @@ landscape evolution.
1414
1515.. _`xarray-topo` : https://gitext.gfz-potsdam.de/sec55-public/xarray-topo
1616
17+ Does xarray-simlab allow fast model execution?
18+ ----------------------------------------------
19+
20+ Yes, although it depends on how the model is implemented.
21+
22+ xarray-simlab is written in pure-Python and so is the outer (time) loop of
23+ xarray-simlab models. The execution of Python code is slow compared to other
24+ languages, but for the outer loop only it wouldn't represent the main bottleneck
25+ of the overall model execution, especially when using an implicit time scheme.
26+ For inner (e.g., spatial) loops in each model processes - implemented within
27+ their ``.run_step `` method -, it might be better to have a numpy vectorized
28+ implementation, use an accelerator like Cython _ or Numba _ or call wrapped code
29+ that is written in, e.g., C or Fortran (see for example f2py _ for wrapping
30+ Fortran code).
31+
32+ As with any other framework, xarray-simlab introduces an overhead compared to
33+ a simple, straightforward (but non-flexible) implementation of a model. However,
34+ the preliminary benchmarks that we have run show only a very small overhead.
35+
36+ .. _Cython : http://cython.org/
37+ .. _Numba : http://numba.pydata.org/
38+ .. _f2py : https://docs.scipy.org/doc/numpy-dev/f2py/
39+
1740Will xarray-simlab support Python 2.7.x?
1841----------------------------------------
1942
@@ -29,8 +52,8 @@ it still makes the code harder to maintain.
2952Which features are likely to be implemented in next xarray-simlab releases?
3053---------------------------------------------------------------------------
3154
32- Some ideas for future development can be found in the roadmap _ on the
33- xarray-simlab's Github wiki _.
55+ xarray-simlab is a very young project. Some ideas for future development can be
56+ found in the roadmap _ on the xarray-simlab's Github wiki _.
3457
3558.. _roadmap : https://github.com/benbovy/xarray-simlab/wiki/Roadmap
3659.. _wiki : https://github.com/benbovy/xarray-simlab/wiki
0 commit comments