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

Add a way to limit properties serialized for agents #3

Open
LaCuneta opened this issue Feb 7, 2022 · 1 comment
Open

Add a way to limit properties serialized for agents #3

LaCuneta opened this issue Feb 7, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@LaCuneta
Copy link
Collaborator

LaCuneta commented Feb 7, 2022

Looking at the test case for Python, it's awesome we can serialize agents now. To think ahead a bit, the amount of data generated and serialized could be large with many agents. It might be handy to have a global command to set which fields are serialized by default. So if you only need xcor, ycor and who, then that is all you get (py:turtle-serials xcor ycor who).

@LaCuneta LaCuneta added the enhancement New feature or request label Feb 7, 2022
@LaCuneta
Copy link
Collaborator Author

LaCuneta commented Feb 9, 2022

To add some clarity after further discussion: this idea is about optimizing the speed of interop and the amount of memory needed for it. Large numbers of agent variables that contain complex data (big lists, basically) across thousands of turtles would take a lot of time to serialize if it's done even per-tick only. It's not an immediate issue, but as people want to take advantage of the feature I can see this being a necessity later on.

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

No branches or pull requests

1 participant