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

Don't reload classes for every loaded robot. #247

Open
kazimuth opened this issue Sep 16, 2016 · 0 comments
Open

Don't reload classes for every loaded robot. #247

kazimuth opened this issue Sep 16, 2016 · 0 comments

Comments

@kazimuth
Copy link
Contributor

Currently, in order to prevent robots from talking to each other with static variables, we just reload all of the player's classes for every robot. This is slow and memory-intensive. It also means that we have trouble using e.g. Java Collections classes in the RobotController interface, iirc.
If we transparently replaced all loads and stores to static variables in player code with calls to some StaticHolder class, one instance for every robot, maybe with a hash map or a runtime-generated class that holds values, we could eliminate this issue.

cc @jbloxham

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

No branches or pull requests

1 participant