Repository navigation
Improvement: reduce memory usage - #219
Conversation
Expanded tests Signed-off-by: Iacopo Moles <[email protected]>
Signed-off-by: Iacopo Moles <[email protected]>
Signed-off-by: Iacopo Moles <[email protected]>
- all test are passing Signed-off-by: Iacopo Moles <[email protected]>
Signed-off-by: Iacopo Moles <[email protected]>
removed unused methods Signed-off-by: Iacopo Moles <[email protected]>
removed unused methods Signed-off-by: Iacopo Moles <[email protected]>
…nto memory_reduction_only_weights # Conflicts: # include/fields2cover/route_planning/route_planner_base.h # include/fields2cover/types/Graph.h # src/fields2cover/route_planning/route_planner_base.cpp # src/fields2cover/types/Graph.cpp # tests/cpp/route_planning/route_planner_base_test.cpp
Signed-off-by: Iacopo Moles <[email protected]>
…nto memory_reduction_only_weights
|
Did they change anything upstream on how colcon resolves dependencies? I'm able to complete the ROS2 check with both jazzy and kilted, but it fails with rolling. EDIT: with switching to I'm unfortunately not really familiar with the ROS CI infrastructure. |
|
Hi @icpmoles, welcome to the Fields2Cover project as a collaborator! I have seen that you made a tutorial of Fields2Cover and we are greatful for it <3. Don't worry about ROS2. The ortools_vendor we also provide is failing lately due to a deprecation in a third party library. During this period I'm a little busy to fix it, but it is in my todo list. About the PR, I like the idea of it and I think it could be beneficial for all the users of the project. We are right now working on merging the branch v3 to main, so it would be awesome that the changes were made over that branch instead of main directly. Moreover, I would also like to see some numbers of how much the PR improves. Could you measure the memory and the time consumed before and after the PR? Again, thank you a lot for your contribution! |
|
I ran some tests with Valgrind Massif on this map In the first picture, if you notice the spike it's due to the compiler not optimizing the copy elision for the return inside I'm aware it's breaking, I couldn't figure out a more elegant solution unfortunately. For the time difference I can send the results tomorrow. I'll check the v3 branch too. |
|
It looks awesome! Can you increment the version by one? So if main is 2.0.0 -> 2.1.0. Same with v3 if you change that one. |
|
Sorry for the late reply. These are the new timings in seconds: original v2 pr Take them with a grain of salt because of thermal throttling. |
Signed-off-by: Iacopo Moles <[email protected]>
Signed-off-by: Iacopo Moles <[email protected]>
|
Thank you really much for your contribution. You made Fields2Cover a little bit better :) |


Hi
Our group was trying to use the library with really big fields (think around 1k swaths with a really detailed ring geometry) and struggled with the memory usage.
We are proposing the following change:
transformSolutionToRoutealtogether: it's only used when interconnecting the swaths at the route level, but when converting into a path the solution relies only on splines. Probably breaking so it's not included in this PR.