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

Use custom serialization and deserialization to recompute the cached hash code #37

Open
gafter opened this issue Mar 30, 2023 · 1 comment

Comments

@gafter
Copy link
Member

gafter commented Mar 30, 2023

We should use custom serialization and deserialization to recompute the cached hash code unless we can guarantee that they are stable.

@gafter
Copy link
Member Author

gafter commented Mar 30, 2023

For customizing Julia's base serialization, I think one needs to specialize

  • Serialization.serialize(s::AbstractSerializer, md::TypeToDeserialize)
  • Serialization.deserialize(s::AbstractSerializer, T::Type{TypeToDeserialize})

See also

@gafter gafter transferred this issue from JuliaServices/AutoHashEqualsCached.jl Aug 18, 2023
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