I have removed the
dynamic_cast I suggested, and got an average performance improvement of 7%. I further followed your suggestions, and I changed the
Accumulated::vector<Activated>, achieving a further 10% of performance. Overall, the changes I am testing have improved the average performance by 15%. I will continue reviewing the performance and I expect to push the changes later today to the
master branch (v6.0).
Thanks for your help.