Change of Trajectory.values type from Matrix to Vector of Vector in
order to replace vcat by push!. The benchmarks are at least equal, and better when the buffer size is small. However, no significative difference of performance with adequate buffer size. My opinion the gain can be seen when simulations are going to be very long with more complicated models than we have implemented for now. All tests passed.
Showing
- bench/pygmalion/multiple_long_sim_er.jl 2 additions, 2 deletionsbench/pygmalion/multiple_long_sim_er.jl
- core/MarkovProcesses.jl 1 addition, 1 deletioncore/MarkovProcesses.jl
- core/_tests_simulate.jl 71 additions, 11 deletionscore/_tests_simulate.jl
- core/common.jl 2 additions, 2 deletionscore/common.jl
- core/lha.jl 7 additions, 2 deletionscore/lha.jl
- core/trajectory.jl 16 additions, 8 deletionscore/trajectory.jl
- tests/dist_lp/dist_case_2.jl 6 additions, 6 deletionstests/dist_lp/dist_case_2.jl
- tests/dist_lp/dist_case_3.jl 6 additions, 6 deletionstests/dist_lp/dist_case_3.jl
- tests/dist_lp/dist_l1_case_1.jl 6 additions, 6 deletionstests/dist_lp/dist_l1_case_1.jl
- tests/unit/check_trajectory_consistency.jl 18 additions, 2 deletionstests/unit/check_trajectory_consistency.jl
Loading
Please register or sign in to comment