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

Implement generic object pool #77

Closed
n8rzz opened this issue Nov 10, 2016 · 3 comments
Closed

Implement generic object pool #77

n8rzz opened this issue Nov 10, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@n8rzz
Copy link
Owner

n8rzz commented Nov 10, 2016

Instead of creating and destroying aircraft instances pool them for re-use.

  • This will require an additional layer between the AircraftController and the AircraftInstanceModel and will also require new methods.
  • Before any of this work can happen, it would be best if the loading of aircraft were decoupled from the AircraftController.

https://sourcemaking.com/design_patterns/object_pool

@n8rzz n8rzz added the feature label Nov 10, 2016
@n8rzz n8rzz changed the title Implement object pooling for Aircraft Implement generic object pool Nov 10, 2016
@n8rzz
Copy link
Owner Author

n8rzz commented Nov 17, 2016

If this is made to be generic, there will probably also need to be a factory layer.

ObjectFactory -> ObjectPool -> ReusableModel

@n8rzz n8rzz mentioned this issue Nov 18, 2016
@n8rzz n8rzz added this to the v3.1.0 milestone Nov 18, 2016
@n8rzz n8rzz self-assigned this Nov 18, 2016
@n8rzz n8rzz modified the milestones: v3.2.0, v3.1.0 Nov 19, 2016
@n8rzz
Copy link
Owner Author

n8rzz commented Nov 19, 2016

This will depend on #53 in order to add Waypoint and PositionModel

@n8rzz
Copy link
Owner Author

n8rzz commented Nov 19, 2016

adds #120 and #121 for future additions to the pool

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

No branches or pull requests

1 participant