Skip to content

Conversation

@Lucas-Haubert
Copy link
Contributor

@Lucas-Haubert Lucas-Haubert commented Nov 22, 2025

This PR solved the execution time of the Maros Meszaros unit tests with Eigen5.

In the files, all the problems are called in files[], then loaded in the load_qp function. Then, depending on the problem size, the instance can be skipped, or not.

With Eigen3: The load_qp function is fast.
With Eigen5: Its execution time seems proportional to the problems size, due to an internal loop.

The proposed correction:

  • Check the size internally, before to enter the loop.
  • => Eigen5 unit test becomes as fast as the Eigen3 one.

Note:

…h intern skipping of large problems, to avoid useless computations (adapt from Eigen 3 to Eigen5)
@jorisv jorisv force-pushed the fix/test_maros_meszaros_eigen5 branch from 7618e70 to f7185f8 Compare November 24, 2025 15:33
Copy link
Contributor

@jorisv jorisv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We look with @Lucas-Haubert why load_qp is way slower with Eigen5. It turn out the SparseMatrix::insert method is taking all the time.

Since this method is only use to create maros_meszaros problem or random qp problem we will not investigate the issue right now.

@jorisv jorisv enabled auto-merge November 24, 2025 15:34
@jorisv jorisv merged commit f323fe3 into Simple-Robotics:devel Nov 24, 2025
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants