This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Fast deallocation of std::vector<Eigen::MatrixXd>

Tags: None
(comma "," separated)
tuncb
Registered Member
Posts
2
Karma
0
Hi
In my application I use a lot of small Eigen::MatrixXd structures (400,000 or more 50x50 matrices) in a std::vector.
My problem is that deallocation of this vector consumes a lot of time: 25% of total running time for example.
Since Eigen::MatrixXd does not accept custom allocators, I ruled out any memory pool implementations.

Do you have any suggestions? Thanks.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]