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

NeighborListCache: don't build neighbor list during initialization #983

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chenlijun99
Copy link
Contributor

Given n radios, neighbor list construction has O(n^2) complexity. If, during initialization, when each radio is added, the neighbor list is reconstructed, we end up having a simulation initialization with O(n^3) complexity.
Sidenote: In one of our tests, without this patch, when running a WiFi simulation of 5000 nodes, it took ~40 minutes to just initialize the simulation.

Given n radios, neighbor list construction has O(n^2) complexity.
If, during initialization, when each radio is added, the neighbor list
is reconstructed, we end up having a simulation initialization with
O(n^3) complexity.
Sidenote: In one of our tests, without this patch, when running a WiFi
simulation of 5000 nodes, it took ~40 minutes to just initialize the
simulation.
@levy levy self-assigned this Jun 27, 2024
@levy levy added the Feature label Jun 27, 2024
@levy
Copy link
Contributor

levy commented Jun 27, 2024

Thanks for submitting this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants