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

Optional Collection Type for multi-occupancy #51

Open
2 tasks
ncollier opened this issue Sep 26, 2023 · 1 comment
Open
2 tasks

Optional Collection Type for multi-occupancy #51

ncollier opened this issue Sep 26, 2023 · 1 comment
Assignees

Comments

@ncollier
Copy link
Member

Currently we use a std::list which may not be optimal for a larger number of agents.

  • Test multi-occupancy code with std::list vs std::set and varying number of agents and see if there is any difference
  • If there is a difference, provide user with option -- additional argument, update occupancy type argument, environment variable
@ncollier ncollier self-assigned this Sep 26, 2023
@ncollier
Copy link
Member Author

See this: https://baptiste-wicht.com/posts/2012/12/cpp-benchmark-vector-list-deque.html

vector might be better for our purposes -- speed of finding the element vs. replacing and resizing.

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

No branches or pull requests

1 participant