You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to be able to cheaply convert between an Atom<StyloAtomSet>, an Atom<ServoAtomSet>, a DefaultAtom, etc. This would allow for interop between different crates without a performance penalty and without them all needing to coordinate on which set of static atoms to use.
However currently a dynamically allocated Atom is keyed by it's hash and that hash varies between static atom sets. So converting between Atom types requires reallocating.
I believe that implementing this would involve changing the Hash implementation of Atom to hash the content of the Atom rather than 64 bit value (see also #224 for why this may be a good anyway). At which point
The text was updated successfully, but these errors were encountered:
It would be useful to be able to cheaply convert between an
Atom<StyloAtomSet>
, anAtom<ServoAtomSet>
, aDefaultAtom
, etc. This would allow for interop between different crates without a performance penalty and without them all needing to coordinate on which set of static atoms to use.However currently a dynamically allocated Atom is keyed by it's
hash
and that hash varies between static atom sets. So converting between Atom types requires reallocating.I believe that implementing this would involve changing the
Hash
implementation ofAtom
to hash the content of the Atom rather than 64 bit value (see also #224 for why this may be a good anyway). At which pointThe text was updated successfully, but these errors were encountered: