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

[Performance] Optimize serialization of object references #13

Open
axel-habermaier opened this issue Nov 24, 2016 · 0 comments
Open

[Performance] Optimize serialization of object references #13

axel-habermaier opened this issue Nov 24, 2016 · 0 comments

Comments

@axel-habermaier
Copy link
Contributor

axel-habermaier commented Nov 24, 2016

Serializing and deserializing object references is an expensive operation that causes measurable overhead especially in the self-organization case studies. While deserialization is fast (a simple array lookup that maps the object's identified to the reference), serialization is expensive, as a dictionary lookup has to be performed in order to find the object's identifier.

Unfortunately, it is in general not possible to store the identifiers within the object itself, as S# supports arbitrary classes. Nevertheless, it might be possible to support an optimization for classes compiled with the S# compiler where a field for the identifier is added to each Component-derived type during code normalization.

Additional optimization opportunities should be investigated.

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