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

Optionally intern copies of strings and other immutable reference types #73

Open
ReubenBond opened this issue Aug 28, 2020 · 1 comment

Comments

@ReubenBond
Copy link
Owner

We can serialize in a more compact format if we support interning of strings so that subsequent copies of a string which are not represented by the same address in .NET (i.e, .NET hasn't already interned them) are serialized only once.

This may not be worthwhile - it likely depends on the workload.

@ReubenBond ReubenBond changed the title Optionally intern strings and other immutable reference types Optionally intern copies of strings and other immutable reference types Aug 28, 2020
@ReubenBond
Copy link
Owner Author

Note that Hagar already will avoid duplicating strings/etc which were interned to begin with, since it uses reference equality to de-dupe objects and support cyclic graphs.

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