Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use parentEntity available in systems instead of storing it for each interface #2473

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Jul 11, 2024

@arjo129 I think it's possible to further simplify #2232 by using the parentEntity already available in the systems vector. I haven't fully tested this yet, but I wanted get your feedback if there's a downside to this approach.

cc @scpeters

…h interface

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters
Copy link
Member

the overall changes of this branch against main: main...azeey/suggestion_2232

src/SystemManager.cc Outdated Show resolved Hide resolved
src/SystemManager.cc Outdated Show resolved Hide resolved
arjo129 added a commit that referenced this pull request Jul 12, 2024
This PR is a suggestion for how 2473 can run in O(m+n) time instead of
O(mn) where m is number of entities removed and n is number of systems.

Signed-off-by: Arjo Chakravarty <arjoc@google.com>
* Slight Improvement in runtime for #2473

This PR is a suggestion for how 2473 can run in O(m+n) time instead of
O(mn) where m is number of entities removed and n is number of systems.

Signed-off-by: Arjo Chakravarty <arjoc@google.com>

* Style

Signed-off-by: Arjo Chakravarty <arjoc@google.com>

---------

Signed-off-by: Arjo Chakravarty <arjoc@google.com>
@azeey azeey merged commit 7026b57 into arjo/feat/remove_systems_with_entities Jul 12, 2024
5 of 6 checks passed
@azeey azeey deleted the azeey/suggestion_2232 branch July 12, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants